@kortix/ui 0.15.1 → 0.15.3

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 (445) hide show
  1. package/dist/_vendor/kortix-shared.js +157 -2
  2. package/dist/_vendor/shared/channel-descriptors.d.ts +1 -1
  3. package/dist/_vendor/shared/index.d.ts +1 -2
  4. package/dist/_vendor/shared/workspace-actions.d.ts +155 -0
  5. package/dist/_vendor/shared/workspace-settings.d.ts +62 -0
  6. package/dist/access/access/access-dialog-share.js +6 -6
  7. package/dist/access/access/access-dialog.d.ts +44 -1
  8. package/dist/access/access/access-dialog.js +8 -8
  9. package/dist/access/access/agent-principals.d.ts +3 -3
  10. package/dist/access/access/agent-principals.js +5 -4
  11. package/dist/access/access/invite-people-dialog.d.ts +37 -0
  12. package/dist/access/access/invite-people-dialog.js +140 -0
  13. package/dist/access/access/principal-picker.js +3 -2
  14. package/dist/access/access/project-select.js +2 -2
  15. package/dist/access/access/role-select.d.ts +9 -8
  16. package/dist/access/access/role-select.js +22 -25
  17. package/dist/access/access/workspace-role-dialog.d.ts +27 -0
  18. package/dist/access/access/workspace-role-dialog.js +48 -0
  19. package/dist/access/iam/add-github-account-dialog.d.ts +1 -1
  20. package/dist/access/iam/add-github-account-dialog.js +1 -1
  21. package/dist/access/iam/api-key-expiry.d.ts +18 -0
  22. package/dist/access/iam/api-key-expiry.js +47 -0
  23. package/dist/access/iam/api-key-rows.d.ts +6 -0
  24. package/dist/access/iam/api-key-rows.js +3 -0
  25. package/dist/access/iam/workspace-key-acts-as.d.ts +41 -0
  26. package/dist/access/iam/workspace-key-acts-as.js +48 -0
  27. package/dist/access/sharing-intent.js +1 -1
  28. package/dist/access/sharing-picker.js +1 -1
  29. package/dist/animated-copy-icon.d.ts +2 -2
  30. package/dist/animated-copy-icon.js +7 -4
  31. package/dist/apps/app-shared.js +2 -2
  32. package/dist/artifacts/artifact-frame.d.ts +0 -1
  33. package/dist/artifacts/artifact-frame.js +4 -10
  34. package/dist/artifacts/artifact-session.js +3 -7
  35. package/dist/artifacts/frame-policy.d.ts +1 -1
  36. package/dist/artifacts/frame-policy.js +2 -2
  37. package/dist/customize/agents/agent-drives-section.js +2 -2
  38. package/dist/customize/agents/agent-page-chrome.js +1 -1
  39. package/dist/customize/agents/agent-page.js +4 -5
  40. package/dist/customize/agents/agents-page.js +2 -3
  41. package/dist/customize/connectors/connector-identity.d.ts +1 -1
  42. package/dist/customize/connectors/connector-identity.js +1 -1
  43. package/dist/customize/connectors/connector-moves-banner.js +2 -2
  44. package/dist/customize/connectors/connectors-page.d.ts +2 -2
  45. package/dist/customize/connectors/connectors-page.js +4 -4
  46. package/dist/customize/connectors/detail/app-page.js +1 -1
  47. package/dist/customize/connectors/detail/connector-page.d.ts +1 -1
  48. package/dist/customize/connectors/detail/connector-page.js +1 -1
  49. package/dist/customize/connectors/detail/connector-policy-sets.js +2 -2
  50. package/dist/customize/connectors/detail/connector-tools.js +7 -7
  51. package/dist/customize/connectors/detail/connector-triggers.js +2 -3
  52. package/dist/customize/connectors/detail/email-inboxes.js +2 -2
  53. package/dist/customize/models/models-page.d.ts +1 -1
  54. package/dist/customize/models/models-page.js +1 -1
  55. package/dist/customize/project-settings/project-admin-sections.d.ts +53 -17
  56. package/dist/customize/project-settings/project-admin-sections.js +80 -31
  57. package/dist/customize/project-settings/project-settings-page.d.ts +2 -2
  58. package/dist/customize/project-settings/project-settings-page.js +6 -4
  59. package/dist/customize/project-settings/project-settings-sections.d.ts +2 -3
  60. package/dist/customize/project-settings/project-settings-sections.js +9 -4
  61. package/dist/customize/providers/provider-accordion.d.ts +3 -1
  62. package/dist/customize/providers/provider-accordion.js +2 -2
  63. package/dist/customize/secrets/secrets-page.d.ts +1 -1
  64. package/dist/customize/secrets/secrets-page.js +1 -1
  65. package/dist/customize/sections/component/email-connect-form.js +2 -2
  66. package/dist/customize/sections/component/slack-byo-wizard.js +3 -3
  67. package/dist/customize/sections/connectors-view.js +17 -17
  68. package/dist/customize/sections/gateway-view.d.ts +7 -5
  69. package/dist/customize/sections/gateway-view.js +28 -17
  70. package/dist/customize/sections/llm-provider/chatgpt-subscription-connect.js +2 -2
  71. package/dist/customize/sections/llm-provider/custom-provider-form.js +2 -2
  72. package/dist/customize/sections/llm-provider/llm-provider-modal.d.ts +1 -1
  73. package/dist/customize/sections/llm-provider/llm-provider-modal.js +4 -4
  74. package/dist/customize/sections/llm-provider/models-tab-row.js +5 -3
  75. package/dist/customize/sections/llm-provider/types.d.ts +2 -0
  76. package/dist/customize/sections/view/agent-editor-catalog.d.ts +5 -6
  77. package/dist/customize/sections/view/agent-editor-catalog.js +33 -19
  78. package/dist/customize/sections/view/agent-editor.js +1 -1
  79. package/dist/customize/sections/view/channels-view.js +13 -13
  80. package/dist/customize/sections/view/gateway/gateway-budgets.js +12 -10
  81. package/dist/customize/sections/view/gateway/gateway-logs.d.ts +1 -1
  82. package/dist/customize/sections/view/gateway/gateway-logs.js +3 -3
  83. package/dist/customize/sections/view/gateway/gateway-overview.js +1 -1
  84. package/dist/customize/sections/view/gateway/gateway-routing.js +1 -1
  85. package/dist/customize/sections/view/git-view.js +3 -3
  86. package/dist/customize/sections/view/grant-mode-field.js +2 -2
  87. package/dist/customize/sections/view/review-center-connected.js +1 -1
  88. package/dist/customize/sections/view/review-view.d.ts +0 -15
  89. package/dist/customize/sections/view/review-view.js +1 -23
  90. package/dist/customize/sections/view/secret-delivery.js +2 -2
  91. package/dist/customize/sections/view/secrets-view.js +16 -16
  92. package/dist/customize/sections/view/subscription-usage-tab.d.ts +12 -1
  93. package/dist/customize/sections/view/subscription-usage-tab.js +71 -72
  94. package/dist/customize/settings/rail-copy-context.js +1 -1
  95. package/dist/customize/settings/rail.d.ts +1 -1
  96. package/dist/customize/settings/rail.js +11 -18
  97. package/dist/customize/settings/settings-tab-header.d.ts +1 -1
  98. package/dist/customize/settings/settings-tab-header.js +1 -1
  99. package/dist/customize/settings/settings-tabs.d.ts +5 -12
  100. package/dist/customize/settings/settings-tabs.js +31 -44
  101. package/dist/customize/settings/tabs/experimental-tab.js +4 -4
  102. package/dist/customize/settings/tabs/general-tab.d.ts +29 -11
  103. package/dist/customize/settings/tabs/general-tab.js +55 -25
  104. package/dist/customize/settings/tabs/project-edit-patch.d.ts +0 -13
  105. package/dist/customize/settings/tabs/project-edit-patch.js +0 -28
  106. package/dist/customize/settings/tabs/sandbox-tab.js +2 -2
  107. package/dist/customize/settings/tabs/tokens-tab.d.ts +32 -2
  108. package/dist/customize/settings/tabs/tokens-tab.js +157 -32
  109. package/dist/customize/settings/tabs/workspace-keys.d.ts +6 -0
  110. package/dist/customize/settings/tabs/workspace-keys.js +240 -0
  111. package/dist/customize/shared/capability-library.js +3 -1
  112. package/dist/customize/shared/catalog/catalog-space-tabs.js +2 -2
  113. package/dist/customize/shared/customize-tab-bar.d.ts +6 -2
  114. package/dist/customize/shared/customize-tab-bar.js +36 -35
  115. package/dist/customize/shared/standalone-settings-nav.js +2 -2
  116. package/dist/customize/triggers/schedule/schedule-copy.d.ts +1 -1
  117. package/dist/customize/triggers/schedule/trigger-composer.js +5 -6
  118. package/dist/customize/triggers/schedule/trigger-list.d.ts +2 -2
  119. package/dist/customize/triggers/schedule/trigger-list.js +12 -18
  120. package/dist/customize/triggers/schedule/trigger-session-access-copy.d.ts +6 -6
  121. package/dist/customize/triggers/schedule/trigger-session-access-copy.js +3 -3
  122. package/dist/customize/triggers/schedule/when-event.js +4 -4
  123. package/dist/customize/triggers/schedule/when-webhook-address.js +2 -2
  124. package/dist/customize/triggers/schedule/when-webhook.js +2 -2
  125. package/dist/customize/triggers/schedule-view.js +4 -5
  126. package/dist/customize/triggers/triggers-page.d.ts +1 -1
  127. package/dist/customize/triggers/triggers-page.js +1 -1
  128. package/dist/files/drives/drive-storage.d.ts +2 -2
  129. package/dist/files/drives/drive-storage.js +13 -6
  130. package/dist/files/project/components/change-request-detail-dialog.js +6 -6
  131. package/dist/files/project/components/change-requests-panel.js +2 -2
  132. package/dist/files/project/components/diff-preview-banner.d.ts +1 -1
  133. package/dist/files/project/components/diff-preview-banner.js +1 -1
  134. package/dist/files/project/components/drive-grid-view.js +1 -1
  135. package/dist/files/project/components/drive-list-view.js +1 -1
  136. package/dist/files/project/context.d.ts +1 -1
  137. package/dist/files/project/context.js +1 -1
  138. package/dist/files/renderers/image-renderer.js +1 -1
  139. package/dist/files/runtime/hooks/use-binary-blob.js +12 -2
  140. package/dist/files/runtime/hooks/use-file-content.js +18 -2
  141. package/dist/files/viewer/file-content-renderer.js +2 -2
  142. package/dist/files/viewer/preview-fit.d.ts +1 -1
  143. package/dist/files/viewer/preview-fit.js +1 -1
  144. package/dist/i18n/en.d.ts +312 -210
  145. package/dist/i18n/en.js +880 -778
  146. package/dist/i18n/ui-catalog/account-hub-translation-keys.generated.js +9 -9
  147. package/dist/i18n/ui-catalog/app-registry-translation-keys.generated.js +12 -6
  148. package/dist/i18n/ui-catalog/product-catalog-translation-keys.generated.js +5 -5
  149. package/dist/i18n/ui-catalog/remaining-ui-translation-keys.generated.js +67 -60
  150. package/dist/icons/index.d.ts +1 -0
  151. package/dist/icons/index.js +1 -0
  152. package/dist/icons/solid-right-arrow.d.ts +8 -0
  153. package/dist/icons/solid-right-arrow.js +11 -0
  154. package/dist/index.d.ts +1 -1
  155. package/dist/index.js +1 -1
  156. package/dist/internal/account-hub/account-hub-entry.js +9 -8
  157. package/dist/internal/account-hub/account-hub-location.d.ts +20 -3
  158. package/dist/internal/account-hub/account-hub-location.js +16 -7
  159. package/dist/internal/account-hub/hub-sheet.d.ts +1 -1
  160. package/dist/internal/account-hub/hub-sheet.js +1 -1
  161. package/dist/internal/account-hub/sections.d.ts +2 -2
  162. package/dist/internal/account-hub/sections.js +10 -10
  163. package/dist/internal/account-hub/use-account-hub-access.d.ts +2 -0
  164. package/dist/internal/account-hub/use-account-hub-access.js +13 -5
  165. package/dist/internal/account-hub/workspace-settings-route.d.ts +27 -0
  166. package/dist/internal/account-hub/workspace-settings-route.js +51 -0
  167. package/dist/internal/components/agent-mark.js +6 -0
  168. package/dist/internal/components/clickable-path.d.ts +3 -0
  169. package/dist/internal/components/clickable-path.js +4 -1
  170. package/dist/internal/components/nav-rail.d.ts +3 -1
  171. package/dist/internal/components/nav-rail.js +2 -0
  172. package/dist/internal/components/repository-disconnected.js +2 -2
  173. package/dist/internal/desktop/desktop-back-button.d.ts +1 -1
  174. package/dist/internal/files/file-read-retry.d.ts +13 -0
  175. package/dist/internal/files/file-read-retry.js +53 -1
  176. package/dist/internal/goals/goal-meta.d.ts +2 -1
  177. package/dist/internal/goals/goal-meta.js +4 -2
  178. package/dist/internal/hooks/account/use-accounts-list.d.ts +2 -12
  179. package/dist/internal/hooks/account/use-accounts-list.js +1 -14
  180. package/dist/internal/hooks/account/use-my-invites.d.ts +1 -1
  181. package/dist/internal/hooks/account/use-my-invites.js +1 -1
  182. package/dist/internal/hooks/use-review-session-summary.d.ts +7 -0
  183. package/dist/internal/hooks/use-review-session-summary.js +12 -1
  184. package/dist/internal/layout/project-capability-nav.d.ts +6 -17
  185. package/dist/internal/layout/project-capability-nav.js +7 -79
  186. package/dist/internal/layout/project-settings-nav.d.ts +2 -2
  187. package/dist/internal/layout/project-settings-nav.js +3 -3
  188. package/dist/internal/lib/billing/billing-gate-state.d.ts +11 -0
  189. package/dist/internal/lib/billing/billing-gate-state.js +18 -0
  190. package/dist/internal/lib/browser-noise/rules/expected-states.js +2 -3
  191. package/dist/internal/lib/browser-noise/rules/extensions.js +18 -0
  192. package/dist/internal/lib/browser-noise/rules/injected-scripts.js +66 -5
  193. package/dist/internal/lib/capability-tab-routes.d.ts +16 -40
  194. package/dist/internal/lib/capability-tab-routes.js +25 -54
  195. package/dist/internal/lib/desktop.d.ts +1 -1
  196. package/dist/internal/lib/desktop.js +1 -1
  197. package/dist/internal/lib/github-installations.d.ts +1 -1
  198. package/dist/internal/lib/github-installations.js +1 -1
  199. package/dist/internal/lib/model-pricing.js +1 -1
  200. package/dist/internal/lib/navigation/session-href.d.ts +1 -1
  201. package/dist/internal/lib/navigation/session-href.js +1 -1
  202. package/dist/internal/lib/onboarding/landing-destination.d.ts +12 -4
  203. package/dist/internal/lib/onboarding/landing-destination.js +17 -5
  204. package/dist/internal/lib/onboarding/last-project-cookie.d.ts +1 -1
  205. package/dist/internal/lib/onboarding/last-project-cookie.js +1 -1
  206. package/dist/internal/lib/project-actions.d.ts +1 -4
  207. package/dist/internal/lib/project-actions.js +2 -5
  208. package/dist/internal/lib/provider-branding.js +11 -3
  209. package/dist/internal/lib/trigger-clock.d.ts +5 -0
  210. package/dist/internal/lib/trigger-clock.js +15 -0
  211. package/dist/internal/lib/turn-broadcast.d.ts +0 -3
  212. package/dist/internal/lib/use-project-can.d.ts +1 -3
  213. package/dist/internal/lib/use-project-can.js +0 -5
  214. package/dist/internal/lib/web-notifications.d.ts +1 -8
  215. package/dist/internal/lib/web-notifications.js +17 -58
  216. package/dist/internal/notifications/notification-bell.d.ts +13 -33
  217. package/dist/internal/notifications/notification-bell.js +14 -117
  218. package/dist/internal/notifications/notification-inbox.d.ts +51 -0
  219. package/dist/internal/notifications/notification-inbox.js +122 -0
  220. package/dist/internal/notifications/notification-rows.d.ts +3 -4
  221. package/dist/internal/notifications/notification-rows.js +1 -4
  222. package/dist/internal/notifications/use-inbox-summary.d.ts +17 -0
  223. package/dist/internal/notifications/use-inbox-summary.js +28 -0
  224. package/dist/internal/notifications/web-push.d.ts +9 -10
  225. package/dist/internal/notifications/web-push.js +9 -10
  226. package/dist/internal/reminders/use-refetch-after-fire.d.ts +0 -2
  227. package/dist/internal/reminders/use-refetch-after-fire.js +1 -10
  228. package/dist/internal/stores/account-panel-store.d.ts +17 -1
  229. package/dist/internal/stores/account-panel-store.js +19 -2
  230. package/dist/internal/stores/project-switch-store.d.ts +2 -2
  231. package/dist/internal/stores/project-switch-store.js +4 -4
  232. package/dist/internal/stores/settings-panel-store.d.ts +6 -0
  233. package/dist/internal/stores/settings-panel-store.js +4 -1
  234. package/dist/internal/stores/web-notification-store.d.ts +6 -9
  235. package/dist/internal/stores/web-notification-store.js +0 -4
  236. package/dist/internal/stores/workspace-settings-rail-store.d.ts +67 -0
  237. package/dist/internal/stores/workspace-settings-rail-store.js +11 -0
  238. package/dist/lib/routes.d.ts +8 -0
  239. package/dist/lib/routes.js +22 -18
  240. package/dist/lib/z-stack.d.ts +7 -0
  241. package/dist/lib/z-stack.js +13 -0
  242. package/dist/markdown/copy-button.d.ts +2 -2
  243. package/dist/markdown/copy-button.js +22 -20
  244. package/dist/markdown/doc-editor/doc-menus.d.ts +1 -10
  245. package/dist/markdown/doc-editor/doc-menus.js +6 -69
  246. package/dist/markdown/file-links.js +21 -0
  247. package/dist/markdown/setup-links/setup-link-button.js +1 -1
  248. package/dist/primitives/button.d.ts +1 -1
  249. package/dist/primitives/emoji-tint.d.ts +1 -1
  250. package/dist/primitives/emoji-tint.js +1 -1
  251. package/dist/primitives/error-state.js +8 -1
  252. package/dist/primitives/inline-meta.d.ts +12 -1
  253. package/dist/primitives/inline-meta.js +38 -5
  254. package/dist/primitives/page-search-bar.js +6 -6
  255. package/dist/primitives/section.d.ts +3 -3
  256. package/dist/primitives/section.js +9 -9
  257. package/dist/primitives/status.d.ts +5 -5
  258. package/dist/primitives/status.js +33 -33
  259. package/dist/primitives/tabs.d.ts +14 -26
  260. package/dist/primitives/tabs.js +103 -105
  261. package/dist/primitives/tag.d.ts +1 -1
  262. package/dist/primitives/toast.d.ts +6 -6
  263. package/dist/primitives/toast.js +55 -48
  264. package/dist/providers/session-ids.d.ts +1 -1
  265. package/dist/providers/ui-provider.d.ts +2 -0
  266. package/dist/session/agents/agent-strip.js +6 -6
  267. package/dist/session/agents/subagent-dialog-content.js +3 -4
  268. package/dist/session/agents/workflow-run-controls.d.ts +0 -2
  269. package/dist/session/agents/workflow-run-controls.js +1 -12
  270. package/dist/session/composer/ComposerCard.js +1 -1
  271. package/dist/session/composer/animated-placeholder.js +1 -1
  272. package/dist/session/composer/chat-input/chat-input-control.js +1 -8
  273. package/dist/session/composer/composer-toolbar.d.ts +18 -16
  274. package/dist/session/composer/composer-toolbar.js +10 -1
  275. package/dist/session/composer/composer.js +5 -13
  276. package/dist/session/composer/reasoning-effort-selector.d.ts +21 -0
  277. package/dist/session/composer/reasoning-effort-selector.js +46 -1
  278. package/dist/session/header/reminder-parts.d.ts +1 -1
  279. package/dist/session/header/session-goal-indicator.js +2 -3
  280. package/dist/session/header/session-reminders-indicator.js +3 -3
  281. package/dist/session/header/session-site-header.js +3 -7
  282. package/dist/session/index.d.ts +1 -1
  283. package/dist/session/models/model-availability.d.ts +11 -0
  284. package/dist/session/models/model-availability.js +12 -0
  285. package/dist/session/models/model-connection-gate.d.ts +11 -26
  286. package/dist/session/models/model-connection-gate.js +22 -35
  287. package/dist/session/models/model-grouping.d.ts +30 -0
  288. package/dist/session/models/model-grouping.js +46 -0
  289. package/dist/session/models/model-picker-panel.d.ts +62 -0
  290. package/dist/session/models/model-picker-panel.js +181 -0
  291. package/dist/session/models/model-selector.d.ts +28 -4
  292. package/dist/session/models/model-selector.js +59 -15
  293. package/dist/session/models/model-tags.d.ts +4 -8
  294. package/dist/session/models/model-tags.js +20 -13
  295. package/dist/session/models/subscription-offer.d.ts +35 -0
  296. package/dist/session/models/subscription-offer.js +91 -0
  297. package/dist/session/models/use-model-connection-gate.d.ts +3 -3
  298. package/dist/session/models/use-model-connection-gate.js +8 -6
  299. package/dist/session/overrides/session-overrides-toolbar.js +8 -5
  300. package/dist/session/panel/open-session-quick-view.js +1 -1
  301. package/dist/session/panel/session-detail-panel.js +5 -1
  302. package/dist/session/panel/session-panel-provider.js +2 -2
  303. package/dist/session/panel/session-reminders-panel.js +6 -17
  304. package/dist/session/panel/shared/use-panel-derivations.d.ts +1 -0
  305. package/dist/session/panel/shared/use-panel-derivations.js +1 -1
  306. package/dist/session/panel/shared/use-panel-handoffs.d.ts +2 -2
  307. package/dist/session/panel/shared/use-panel-handoffs.js +22 -3
  308. package/dist/session/panel/use-session-panel-state.js +1 -1
  309. package/dist/session/prompts/ask-deck.d.ts +5 -3
  310. package/dist/session/prompts/ask-deck.js +30 -10
  311. package/dist/session/prompts/session-access-prompt.d.ts +61 -0
  312. package/dist/session/prompts/session-access-prompt.js +88 -0
  313. package/dist/session/prompts/session-permission-prompt.js +1 -1
  314. package/dist/session/scope/session-scope-control.js +2 -2
  315. package/dist/session/status/session-notice-banner.js +3 -3
  316. package/dist/session/status/session-route-prefetch.d.ts +2 -2
  317. package/dist/session/thread/optimistic-turn.js +1 -1
  318. package/dist/session/thread/session-chat.js +40 -18
  319. package/dist/session/thread/session-context-message-explorer.js +2 -2
  320. package/dist/session/thread/session-history.js +3 -3
  321. package/dist/session/tool/render-static.d.ts +11 -0
  322. package/dist/session/tool/render-static.js +16 -0
  323. package/dist/session/tool/shared/session-helpers.js +2 -2
  324. package/dist/session/tool/tool-part-renderer.d.ts +6 -1
  325. package/dist/session/tool/tool-part-renderer.js +9 -5
  326. package/dist/session/tool/tools/kortix-action-tool.js +4 -25
  327. package/dist/session/tool/tools/session-spawn-tool.js +7 -4
  328. package/dist/session/tool/tools/task-tool.js +27 -6
  329. package/dist/session/tool/tools/workflow-run-card.js +5 -1
  330. package/dist/session/tool/tools/workflow-tool.js +3 -14
  331. package/dist/session/turn/user-message.js +1 -1
  332. package/dist/styles.css +1 -1
  333. package/dist/test-utils/intl.d.ts +10096 -0
  334. package/dist/test-utils/intl.js +27 -0
  335. package/dist/test-utils/strip-tags.d.ts +24 -0
  336. package/dist/test-utils/strip-tags.js +32 -0
  337. package/dist/workspace/admin/project-admin-dashboard.d.ts +51 -33
  338. package/dist/workspace/admin/project-admin-dashboard.js +269 -81
  339. package/dist/workspace/admin/settings-search-landing.d.ts +11 -0
  340. package/dist/workspace/admin/settings-search-landing.js +103 -0
  341. package/dist/workspace/admin/settings-search.d.ts +69 -0
  342. package/dist/workspace/admin/settings-search.js +393 -0
  343. package/dist/workspace/home/access-requests-bell.d.ts +6 -9
  344. package/dist/workspace/home/access-requests-bell.js +8 -10
  345. package/dist/workspace/home/existing-repo-setup-prompt.d.ts +22 -0
  346. package/dist/workspace/home/existing-repo-setup-prompt.js +58 -0
  347. package/dist/workspace/home/no-agent-home.d.ts +25 -0
  348. package/dist/workspace/home/no-agent-home.js +44 -0
  349. package/dist/workspace/home/welcome-body.js +2 -1
  350. package/dist/workspace/inbox/workspace-inbox.d.ts +21 -0
  351. package/dist/workspace/inbox/workspace-inbox.js +52 -0
  352. package/dist/workspace/layout/project-files-view.js +1 -1
  353. package/dist/workspace/layout/project-home.js +60 -10
  354. package/dist/workspace/memory/memory-body.js +2 -2
  355. package/dist/workspace/new/account-param.d.ts +1 -1
  356. package/dist/workspace/new/account-param.js +4 -4
  357. package/dist/workspace/new/advanced-fields.js +3 -3
  358. package/dist/workspace/new/clone-param.d.ts +1 -1
  359. package/dist/workspace/new/clone-param.js +1 -1
  360. package/dist/workspace/new/create-workspace-key.js +1 -1
  361. package/dist/workspace/new/github-source.d.ts +6 -6
  362. package/dist/workspace/new/github-source.js +6 -6
  363. package/dist/workspace/new/new-workspace-form.d.ts +11 -141
  364. package/dist/workspace/new/new-workspace-form.js +9 -195
  365. package/dist/workspace/new/provision-new-workspace.d.ts +14 -0
  366. package/dist/workspace/new/provision-new-workspace.js +14 -0
  367. package/dist/workspace/new/repository-options.d.ts +2 -2
  368. package/dist/workspace/new/repository-options.js +2 -2
  369. package/dist/workspace/new/source-param.d.ts +2 -2
  370. package/dist/workspace/new/source-param.js +2 -2
  371. package/dist/workspace/new/use-create-workspace.d.ts +43 -102
  372. package/dist/workspace/new/use-create-workspace.js +77 -136
  373. package/dist/workspace/new/use-project-quota.d.ts +1 -1
  374. package/dist/workspace/new/use-project-quota.js +1 -1
  375. package/dist/workspace/new/workspace-handoff.d.ts +2 -2
  376. package/dist/workspace/new/workspace-handoff.js +2 -2
  377. package/dist/workspace/new/workspace-name.d.ts +1 -1
  378. package/dist/workspace/new/workspace-name.js +1 -1
  379. package/dist/workspace/project-selector/project-selector-model.d.ts +115 -57
  380. package/dist/workspace/project-selector/project-selector-model.js +157 -111
  381. package/dist/workspace/projects/modal/project-icon-field.d.ts +5 -5
  382. package/dist/workspace/projects/modal/project-icon-field.js +4 -4
  383. package/dist/workspace/projects/policies-panel.js +3 -3
  384. package/dist/workspace/sessions/board-grouping.js +1 -1
  385. package/dist/workspace/sessions/project-sessions-view.js +2 -2
  386. package/dist/workspace/sessions/session-detail.js +2 -2
  387. package/dist/workspace/sessions/sessions-board.d.ts +1 -1
  388. package/dist/workspace/sessions/sessions-board.js +1 -1
  389. package/dist/workspace/settings/split-notice-banner.d.ts +13 -0
  390. package/dist/workspace/settings/split-notice-banner.js +59 -0
  391. package/dist/workspace/settings/use-leave-workspace.d.ts +16 -0
  392. package/dist/workspace/settings/use-leave-workspace.js +60 -0
  393. package/dist/workspace/sidebar/footer/project-files-nav.js +2 -2
  394. package/dist/workspace/sidebar/footer/sandbox-health.js +1 -1
  395. package/dist/workspace/sidebar/invitations-menu-group.d.ts +2 -2
  396. package/dist/workspace/sidebar/invitations-menu-group.js +4 -4
  397. package/dist/workspace/sidebar/modal/session-embed-section.js +1 -1
  398. package/dist/workspace/sidebar/modal/share-session-access.js +1 -1
  399. package/dist/workspace/sidebar/modal/share-session-modal.js +3 -3
  400. package/dist/workspace/sidebar/project-nav-items.js +14 -25
  401. package/dist/workspace/sidebar/project-sidebar.js +18 -7
  402. package/dist/workspace/sidebar/project-spaces-nav.js +6 -15
  403. package/dist/workspace/sidebar/sidebar-drill.d.ts +37 -0
  404. package/dist/workspace/sidebar/sidebar-drill.js +110 -0
  405. package/dist/workspace/sidebar/use-workspace-directory.d.ts +24 -0
  406. package/dist/workspace/sidebar/use-workspace-directory.js +24 -0
  407. package/dist/workspace/sidebar/use-workspace-list.d.ts +37 -0
  408. package/dist/workspace/sidebar/use-workspace-list.js +71 -0
  409. package/dist/workspace/sidebar/workspace-grouping.d.ts +6 -67
  410. package/dist/workspace/sidebar/workspace-grouping.js +4 -107
  411. package/dist/workspace/sidebar/workspace-menu-model.d.ts +30 -12
  412. package/dist/workspace/sidebar/workspace-menu-model.js +13 -107
  413. package/dist/workspace/sidebar/workspace-menu-section.d.ts +7 -1
  414. package/dist/workspace/sidebar/workspace-menu-section.js +65 -100
  415. package/dist/workspace/sidebar/workspace-settings-sidebar-nav.d.ts +34 -0
  416. package/dist/workspace/sidebar/workspace-settings-sidebar-nav.js +282 -0
  417. package/dist/workspace/space/space-filter-tabs.js +2 -2
  418. package/dist/workspace/space/space-page.d.ts +1 -1
  419. package/dist/workspace/space/space-page.js +1 -1
  420. package/package.json +59 -51
  421. package/skills/kortix-ui/SKILL.md +66 -66
  422. package/skills/kortix-ui/references/custom-dashboard.md +15 -15
  423. package/skills/kortix-ui/references/modules.md +15 -15
  424. package/dist/_vendor/shared/artifact-annotations.d.ts +0 -311
  425. package/dist/_vendor/shared/artifact-comments.d.ts +0 -155
  426. package/dist/customize/agents/agent-pin-button.d.ts +0 -10
  427. package/dist/customize/agents/agent-pin-button.js +0 -20
  428. package/dist/customize/settings/tabs/transfer-workspace-dialog.d.ts +0 -4
  429. package/dist/customize/settings/tabs/transfer-workspace-dialog.js +0 -82
  430. package/dist/internal/account-hub/account-settings-shell.d.ts +0 -7
  431. package/dist/internal/account-hub/account-settings-shell.js +0 -87
  432. package/dist/internal/account-hub/account-settings-sidebar.d.ts +0 -2
  433. package/dist/internal/account-hub/account-settings-sidebar.js +0 -169
  434. package/dist/internal/hooks/use-notification-center.d.ts +0 -50
  435. package/dist/internal/hooks/use-notification-center.js +0 -151
  436. package/dist/internal/lib/use-project-feature-flags.d.ts +0 -26
  437. package/dist/internal/lib/use-project-feature-flags.js +0 -78
  438. package/dist/internal/stores/pinned-agents-store.d.ts +0 -26
  439. package/dist/internal/stores/pinned-agents-store.js +0 -20
  440. package/dist/primitives/info-banner.d.ts +0 -14
  441. package/dist/primitives/info-banner.js +0 -72
  442. package/dist/workspace/new/account-picker.d.ts +0 -71
  443. package/dist/workspace/new/account-picker.js +0 -92
  444. package/dist/workspace/new/use-creatable-accounts.d.ts +0 -8
  445. package/dist/workspace/new/use-creatable-accounts.js +0 -33
@@ -24,7 +24,7 @@ import { CheckIcon, PlusIcon, ShieldCheckIcon, TrashIcon } from '@phosphor-icons
24
24
  import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
25
25
  import { useEffect, useMemo, useState } from 'react';
26
26
  import { Button } from '../../primitives/button.js';
27
- import { InfoBanner } from '../../primitives/info-banner.js';
27
+ import { Alert as BannerAlert, AlertTitle as BannerAlertTitle, AlertDescription as BannerAlertDescription } from '../../primitives/alert.js';
28
28
  import { Input } from '../../primitives/input.js';
29
29
  import { Label } from '../../primitives/label.js';
30
30
  import Loading from '../../primitives/loading.js';
@@ -191,7 +191,7 @@ export function PoliciesPanel({ projectId }) {
191
191
  setDefaultMode(seeded.defaultMode);
192
192
  }
193
193
  if (isForbidden) {
194
- return (_jsx(InfoBanner, { tone: "warning", title: tI18nHardcoded.raw('autoComponentsProjectsPoliciesPanelJsxAttrTitleAdminAccessRequired34f66101'), children: tI18nHardcoded.raw('autoComponentsProjectsPoliciesPanelJsxTextOnlyProjectManagersCan603f67fc') }));
194
+ return (_jsxs(BannerAlert, { variant: "warning", children: [_jsx(BannerAlertTitle, { children: tI18nHardcoded.raw('autoComponentsProjectsPoliciesPanelJsxAttrTitleAdminAccessRequired34f66101') }), _jsx(BannerAlertDescription, { children: tI18nHardcoded.raw('autoComponentsProjectsPoliciesPanelJsxTextOnlyProjectManagersCan603f67fc') })] }));
195
195
  }
196
196
  const parseErrors = query.data?.errors ?? [];
197
197
  return (_jsxs("div", { className: "flex h-full w-full flex-1 grow flex-col space-y-8", children: [_jsxs("section", { className: "space-y-4", children: [_jsxs("div", { className: "space-y-1", children: [_jsx(Label, { children: tI18nHardcoded.raw('i18nComplete.texta98b3578d57b') }), _jsx("p", { className: "text-muted-foreground text-xs text-pretty", children: tI18nHardcoded.raw('i18nComplete.text39839e17c1cd') })] }), query.isLoading ? (_jsxs("div", { className: "grid gap-2 sm:grid-cols-2", children: [_jsx(Skeleton, { className: "h-18 rounded-md" }), _jsx(Skeleton, { className: "h-18 rounded-md" })] })) : (_jsx("div", { className: "grid gap-2 sm:grid-cols-2", children: defaultOptions.map((opt) => {
@@ -202,7 +202,7 @@ export function PoliciesPanel({ projectId }) {
202
202
  'transition-[background-color,border-color,scale] duration-normal ease-out', 'motion-safe:active:scale-[0.99]', selected
203
203
  ? 'border-primary/40 bg-primary/[0.06]'
204
204
  : 'bg-popover hover:bg-foreground/[0.03]'), children: [_jsxs("span", { className: "flex w-full items-center justify-between gap-2", children: [_jsx("span", { className: "text-foreground text-sm font-medium", children: opt.label }), selected ? _jsx(CheckIcon, { className: "text-foreground size-4 shrink-0" }) : null] }), _jsx("span", { className: "text-muted-foreground text-xs text-pretty", children: opt.description })] }, opt.value));
205
- }) }))] }), _jsxs("section", { className: "space-y-4", children: [_jsxs("div", { className: "flex flex-col gap-2 sm:flex-row sm:items-start sm:justify-between", children: [_jsxs("div", { className: "space-y-1", children: [_jsx(Label, { children: tI18nHardcoded.raw('i18nComplete.text4228aeb07c41') }), _jsx("p", { className: "text-muted-foreground text-xs text-pretty", children: tI18nHardcoded.raw('i18nComplete.texteb35a8dd49a7') })] }), draft.length > 0 && (_jsxs(Button, { size: "sm", variant: "secondary", className: "shrink-0 gap-1.5 self-start sm:self-auto", onClick: addRule, disabled: query.isLoading, children: [_jsx(PlusIcon, { className: "size-4 shrink-0" }), tI18nHardcoded.raw('i18nComplete.texta27cff51a2e0')] }))] }), parseErrors.length > 0 && (_jsx(InfoBanner, { tone: "warning", title: tI18nHardcoded.raw('autoComponentsProjectsPoliciesPanelJsxAttrTitleKortixTomlHad8db85c74'), children: _jsx("ul", { className: "space-y-1", children: parseErrors.map((e) => (_jsxs("li", { className: "text-xs", children: [_jsx("span", { className: "font-mono", children: e.path }), ": ", e.error] }, `${e.path}:${e.error}`))) }) })), query.isLoading ? (_jsx("div", { className: "space-y-2", children: [0, 1].map((i) => (_jsx(Skeleton, { className: "h-28 rounded-md" }, i))) })) : draft.length === 0 ? (_jsx("div", { className: "bg-popover rounded-md border", children: _jsx(EmptyState, { icon: ShieldCheckIcon, size: "sm", className: "p-8 md:p-10", title: tI18nHardcoded.raw('autoComponentsProjectsPoliciesPanelJsxAttrTitleNoRulesYet795c2fb5'), description: tI18nHardcoded.raw('autoComponentsProjectsPoliciesPanelJsxAttrDescriptionRequireApprovalFor7e7b9477'), action: _jsxs(Button, { size: "sm", variant: "outline", className: "gap-1.5", onClick: addRule, children: [_jsx(PlusIcon, { className: "size-4 shrink-0" }), tI18nHardcoded.raw('i18nComplete.texta27cff51a2e0')] }) }) })) : (_jsx("ul", { className: "space-y-2", children: draft.map((rule, idx) => (_jsx(RuleRow, { rule: rule, index: idx, onChange: (patch) => updateRule(rule.id, patch), onRemove: () => removeRule(rule.id), onAddCondition: () => addCondition(rule.id), onChangeCondition: (cIdx, patch) => updateCondition(rule.id, cIdx, patch), onRemoveCondition: (cIdx) => removeCondition(rule.id, cIdx) }, rule.id))) }))] }), dirty && (_jsxs("div", { className: "bg-popover z-10 mt-auto flex flex-wrap items-center justify-between gap-3 rounded-md border px-4 py-3", children: [_jsxs("p", { className: "text-muted-foreground min-w-0 text-xs text-pretty", children: [tI18nHardcoded.raw('i18nComplete.text53121d4517f7'), ' ', _jsx("code", { className: "bg-muted text-foreground rounded-sm px-1 py-0.5 font-mono text-xs", children: "kortix.yaml" }), "."] }), _jsxs("div", { className: "flex shrink-0 items-center gap-2", children: [_jsx(Button, { variant: "ghost", size: "sm", onClick: revert, disabled: save.isPending, children: tI18nHardcoded.raw('i18nComplete.text0026c5053478') }), _jsxs(Button, { size: "sm", onClick: () => save.mutate(), disabled: save.isPending, children: [save.isPending ? _jsx(Loading, { className: "size-4 shrink-0" }) : null, tI18nHardcoded.raw('i18nComplete.textdd0ae7a5cbcf')] })] })] }))] }));
205
+ }) }))] }), _jsxs("section", { className: "space-y-4", children: [_jsxs("div", { className: "flex flex-col gap-2 sm:flex-row sm:items-start sm:justify-between", children: [_jsxs("div", { className: "space-y-1", children: [_jsx(Label, { children: tI18nHardcoded.raw('i18nComplete.text4228aeb07c41') }), _jsx("p", { className: "text-muted-foreground text-xs text-pretty", children: tI18nHardcoded.raw('i18nComplete.texteb35a8dd49a7') })] }), draft.length > 0 && (_jsxs(Button, { size: "sm", variant: "secondary", className: "shrink-0 gap-1.5 self-start sm:self-auto", onClick: addRule, disabled: query.isLoading, children: [_jsx(PlusIcon, { className: "size-4 shrink-0" }), tI18nHardcoded.raw('i18nComplete.texta27cff51a2e0')] }))] }), parseErrors.length > 0 && (_jsxs(BannerAlert, { variant: "warning", children: [_jsx(BannerAlertTitle, { children: tI18nHardcoded.raw('autoComponentsProjectsPoliciesPanelJsxAttrTitleKortixTomlHad8db85c74') }), _jsx(BannerAlertDescription, { children: _jsx("ul", { className: "space-y-1", children: parseErrors.map((e) => (_jsxs("li", { className: "text-xs", children: [_jsx("span", { className: "font-mono", children: e.path }), ": ", e.error] }, `${e.path}:${e.error}`))) }) })] })), query.isLoading ? (_jsx("div", { className: "space-y-2", children: [0, 1].map((i) => (_jsx(Skeleton, { className: "h-28 rounded-md" }, i))) })) : draft.length === 0 ? (_jsx("div", { className: "bg-popover rounded-md border", children: _jsx(EmptyState, { icon: ShieldCheckIcon, size: "sm", className: "p-8 md:p-10", title: tI18nHardcoded.raw('autoComponentsProjectsPoliciesPanelJsxAttrTitleNoRulesYet795c2fb5'), description: tI18nHardcoded.raw('autoComponentsProjectsPoliciesPanelJsxAttrDescriptionRequireApprovalFor7e7b9477'), action: _jsxs(Button, { size: "sm", variant: "outline", className: "gap-1.5", onClick: addRule, children: [_jsx(PlusIcon, { className: "size-4 shrink-0" }), tI18nHardcoded.raw('i18nComplete.texta27cff51a2e0')] }) }) })) : (_jsx("ul", { className: "space-y-2", children: draft.map((rule, idx) => (_jsx(RuleRow, { rule: rule, index: idx, onChange: (patch) => updateRule(rule.id, patch), onRemove: () => removeRule(rule.id), onAddCondition: () => addCondition(rule.id), onChangeCondition: (cIdx, patch) => updateCondition(rule.id, cIdx, patch), onRemoveCondition: (cIdx) => removeCondition(rule.id, cIdx) }, rule.id))) }))] }), dirty && (_jsxs("div", { className: "bg-popover z-10 mt-auto flex flex-wrap items-center justify-between gap-3 rounded-md border px-4 py-3", children: [_jsxs("p", { className: "text-muted-foreground min-w-0 text-xs text-pretty", children: [tI18nHardcoded.raw('i18nComplete.text53121d4517f7'), ' ', _jsx("code", { className: "bg-muted text-foreground rounded-sm px-1 py-0.5 font-mono text-xs", children: "kortix.yaml" }), "."] }), _jsxs("div", { className: "flex shrink-0 items-center gap-2", children: [_jsx(Button, { variant: "ghost", size: "sm", onClick: revert, disabled: save.isPending, children: tI18nHardcoded.raw('i18nComplete.text0026c5053478') }), _jsxs(Button, { size: "sm", onClick: () => save.mutate(), disabled: save.isPending, children: [save.isPending ? _jsx(Loading, { className: "size-4 shrink-0" }) : null, tI18nHardcoded.raw('i18nComplete.textdd0ae7a5cbcf')] })] })] }))] }));
206
206
  }
207
207
  /**
208
208
  * One rule: which tool it covers, what to do, and any argument conditions.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * The agent board (`/projects/<id>/sessions?view=board`): every session of the
2
+ * The agent board (`/workspaces/<id>/sessions?view=board`): every session of the
3
3
  * project grouped by what it needs from the person, as Claude Code's agent view
4
4
  * groups background sessions. Pure functions; the board component renders them.
5
5
  */
@@ -7,7 +7,7 @@ import { Button } from '../../primitives/button.js';
7
7
  import { Disclosure, DisclosureContent, DisclosureTrigger } from '../../primitives/disclosure.js';
8
8
  import { FadedScrollArea } from '../../primitives/faded-scroll-area.js';
9
9
  import { Skeleton } from '../../primitives/skeleton.js';
10
- import { Tabs, TabsList, TabsListCompact, TabsTrigger, TabsTriggerCompact } from '../../primitives/tabs.js';
10
+ import { Tabs, TabsList, TabsTrigger } from '../../primitives/tabs.js';
11
11
  import { errorToast, successToast, warningToast } from '../../primitives/toast.js';
12
12
  import { EmptyState } from '../../primitives/empty-state.js';
13
13
  import { ErrorState } from '../../primitives/error-state.js';
@@ -546,7 +546,7 @@ export function ProjectSessionsView({ projectId }) {
546
546
  } })) : null }), childrenOpen ? (_jsx(SessionChildrenRows, { projectId: projectId, parentId: session.session_id, q: searching && session.search_match === 'child' ? searchQuery : undefined, renderRow: (child) => renderRow(child) })) : null] }, session.session_id));
547
547
  };
548
548
  const header = selectMode ? (_jsx(SessionsSelectionBar, { selectedCount: selectedCount, selectableCount: selectableSessions.length, allSelected: allSelected, onSelectAll: () => setSelected(new Set(selectableSessions.map((session) => session.session_id))), onClearSelection: () => setSelected(new Set()), onExit: exitSelectMode, onDelete: () => setBulkConfirmOpen(true), deleting: bulkDeleteMutation.isPending, onArchive: () => bulkArchiveMutation.mutate({ sessionIds: [...visibleSelection], archived: !archivedTab }), archiveLabel: tPinArchive(archivedTab ? 'bulkUnarchive' : 'bulkArchive'), archiving: bulkArchiveMutation.isPending })) : (_jsx(SessionsToolbar, { projectId: projectId, sessions: sessions, reviewCountBySession: needsYouBySession, search: search, onSearchChange: setSearch, searchOpen: searchOpen, onSearchOpenChange: setSearchOpen, onEnterSelectMode: () => setSelectMode(true), creatingSession: creatingSession, canSelect: sessions.length > 0 && !deletedTab, showNewSession: !channelsOn }));
549
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "relative flex h-full min-h-0 flex-col overflow-hidden", children: [_jsx(SidebarToggle, { placement: "floating" }), _jsxs("header", { className: cn('mx-auto w-full max-w-4xl shrink-0 px-4 pt-10 pb-5 lg:pt-20', 'flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between'), children: [_jsx("div", { className: "space-y-1", children: _jsx("h2", { className: "text-foreground text-xl font-medium", children: tI18nComplete.raw('text6fa3cbf451b2') }) }), _jsxs("div", { className: "mt-2 flex shrink-0 items-center gap-2 sm:mt-0", children: [_jsx(Tabs, { value: layout, onValueChange: (value) => selectLayout(value), children: _jsxs(TabsList, { "aria-label": tBoard('layoutLabel'), children: [_jsxs(TabsTrigger, { value: "list", size: "sm", className: "gap-1.5", children: [_jsx(ListIcon, { className: "size-3.5" }), tBoard('layoutList')] }), _jsxs(TabsTrigger, { value: "board", size: "sm", className: "gap-1.5", children: [_jsx(KanbanIcon, { className: "size-3.5" }), tBoard('layoutBoard')] })] }) }), layout === 'list' ? header : null] })] }), _jsx("div", { className: cn('mx-auto flex min-h-0 w-full max-w-4xl flex-1 flex-col px-4 pb-4'), children: layout === 'board' ? (_jsx(SessionsBoard, { projectId: projectId })) : (_jsxs(_Fragment, { children: [_jsx(Tabs, { value: startedBy, onValueChange: (value) => selectTab(value), className: "shrink-0", children: _jsxs(TabsListCompact, { "aria-label": tSidebar('startedBy.label'), children: [STARTED_BY_FILTERS.map((value) => (_jsx(TabsTriggerCompact, { value: value, children: tSidebar(`startedBy.${value}`) }, value))), _jsx(TabsTriggerCompact, { value: "archived", children: tPinArchive('view') }), _jsx(TabsTriggerCompact, { value: "deleted", children: tDeleted('view') })] }) }), listState === 'loading' ? (_jsx(SessionListSkeleton, {})) : listState === 'error' ? (_jsx(ErrorState, { size: "sm", title: tI18nComplete.raw('textb6d85433a7ee'), description: sessionsQuery.error instanceof Error ? sessionsQuery.error.message : undefined, action: _jsx(Button, { variant: "outline", size: "sm", onClick: () => sessionsQuery.refetch(), children: tI18nComplete.raw('text942087cc2d41') }) })) : listState === 'more' ? (
549
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "relative flex h-full min-h-0 flex-col overflow-hidden", children: [_jsx(SidebarToggle, { placement: "floating" }), _jsxs("header", { className: cn('mx-auto w-full max-w-4xl shrink-0 px-4 pt-10 pb-5 lg:pt-20', 'flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between'), children: [_jsx("div", { className: "space-y-1", children: _jsx("h2", { className: "text-foreground text-xl font-medium", children: tI18nComplete.raw('text6fa3cbf451b2') }) }), _jsxs("div", { className: "mt-2 flex shrink-0 items-center gap-2 sm:mt-0", children: [_jsx(Tabs, { value: layout, onValueChange: (value) => selectLayout(value), children: _jsxs(TabsList, { "aria-label": tBoard('layoutLabel'), children: [_jsxs(TabsTrigger, { value: "list", size: "sm", className: "gap-1.5", children: [_jsx(ListIcon, { className: "size-3.5" }), tBoard('layoutList')] }), _jsxs(TabsTrigger, { value: "board", size: "sm", className: "gap-1.5", children: [_jsx(KanbanIcon, { className: "size-3.5" }), tBoard('layoutBoard')] })] }) }), layout === 'list' ? header : null] })] }), _jsx("div", { className: cn('mx-auto flex min-h-0 w-full max-w-4xl flex-1 flex-col px-4 pb-4'), children: layout === 'board' ? (_jsx(SessionsBoard, { projectId: projectId })) : (_jsxs(_Fragment, { children: [_jsx(Tabs, { value: startedBy, onValueChange: (value) => selectTab(value), className: "shrink-0", children: _jsxs(TabsList, { size: "xs", "aria-label": tSidebar('startedBy.label'), children: [STARTED_BY_FILTERS.map((value) => (_jsx(TabsTrigger, { value: value, children: tSidebar(`startedBy.${value}`) }, value))), _jsx(TabsTrigger, { value: "archived", children: tPinArchive('view') }), _jsx(TabsTrigger, { value: "deleted", children: tDeleted('view') })] }) }), listState === 'loading' ? (_jsx(SessionListSkeleton, {})) : listState === 'error' ? (_jsx(ErrorState, { size: "sm", title: tI18nComplete.raw('textb6d85433a7ee'), description: sessionsQuery.error instanceof Error ? sessionsQuery.error.message : undefined, action: _jsx(Button, { variant: "outline", size: "sm", onClick: () => sessionsQuery.refetch(), children: tI18nComplete.raw('text942087cc2d41') }) })) : listState === 'more' ? (
550
550
  // No row the viewer can see on the pages read so far, and more
551
551
  // pages exist (KRTX-1727): offer them, never "No sessions yet".
552
552
  _jsx("div", { className: "pt-6", children: loadMoreButton })) : listState === 'empty' && !searching && archivedTab ? (_jsx(EmptyState, { size: "sm", title: tPinArchive('empty') })) : listState === 'empty' && !searching && deletedTab ? (_jsx(EmptyState, { size: "sm", title: tDeleted('empty', { days: RESTORE_DAYS }) })) : deletedTab && listState !== 'empty' ? (
@@ -2,7 +2,7 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { uiRoutes } from '../../lib/routes.js';
4
4
  import { Button } from '../../primitives/button.js';
5
- import { InfoBanner } from '../../primitives/info-banner.js';
5
+ import { Alert as BannerAlert, AlertTitle as BannerAlertTitle, AlertDescription as BannerAlertDescription, AlertMedia as BannerAlertMedia } from '../../primitives/alert.js';
6
6
  import { cn } from '../../internal/lib/utils.js';
7
7
  import { ArrowSquareOutIcon, WarningIcon } from '@phosphor-icons/react';
8
8
  import { useTranslations } from '../../i18n/index.js';
@@ -16,5 +16,5 @@ export function SessionDetail({ projectId, session, formatted, }) {
16
16
  const access = sessionAccessMeta(session, tI18nComplete);
17
17
  const fields = sessionDetailFields(session, formatted, tI18nComplete);
18
18
  const href = uiRoutes().session(projectId, session.session_id);
19
- return (_jsxs("div", { className: "space-y-5 px-4 py-5", children: [_jsx("dl", { className: "grid gap-x-6 gap-y-4 sm:grid-cols-2 lg:grid-cols-3", children: fields.map((field) => (_jsx(DetailItem, { ...field }, field.label))) }), session.error ? (_jsx(InfoBanner, { tone: "destructive", icon: WarningIcon, title: tI18nComplete.raw('text650e4f3bbda1'), children: _jsx("span", { className: "wrap-break-word", children: session.error }) })) : null, session.deleted_at ? (_jsx(InfoBanner, { tone: "neutral", title: tI18nComplete.raw('textfdb73b4a48f2'), children: _jsxs("span", { children: [tI18nComplete.raw('textb48ff39c2e0f'), ' ', formatted.deleted ?? tI18nComplete.raw('texted8aa125a36b'), session.deleted_by ? ` by ${session.deleted_by}` : '', tI18nComplete.raw('text78a10fea0bef')] }) })) : session.can_access === false ? (_jsx(InfoBanner, { tone: "neutral", title: tI18nComplete.raw('text4acf3c9c6c5e'), children: tI18nComplete.raw('text1f5bdc1c9cf0') })) : null, access.canOpen ? (_jsx("div", { className: "flex justify-end border-t pt-4", children: _jsx(Button, { variant: "outline", size: "sm", asChild: true, children: _jsxs(Link, { href: href, children: [tI18nComplete.raw('textb205bb47f81a'), _jsx(ArrowSquareOutIcon, { className: "size-3.5 shrink-0" })] }) }) })) : null] }));
19
+ return (_jsxs("div", { className: "space-y-5 px-4 py-5", children: [_jsx("dl", { className: "grid gap-x-6 gap-y-4 sm:grid-cols-2 lg:grid-cols-3", children: fields.map((field) => (_jsx(DetailItem, { ...field }, field.label))) }), session.error ? (_jsxs(BannerAlert, { variant: "destructive", children: [_jsx(BannerAlertMedia, { children: _jsx(WarningIcon, {}) }), _jsx(BannerAlertTitle, { children: tI18nComplete.raw('text650e4f3bbda1') }), _jsx(BannerAlertDescription, { children: _jsx("span", { className: "wrap-break-word", children: session.error }) })] })) : null, session.deleted_at ? (_jsxs(BannerAlert, { variant: "default", children: [_jsx(BannerAlertTitle, { children: tI18nComplete.raw('textfdb73b4a48f2') }), _jsx(BannerAlertDescription, { children: _jsxs("span", { children: [tI18nComplete.raw('textb48ff39c2e0f'), ' ', formatted.deleted ?? tI18nComplete.raw('texted8aa125a36b'), session.deleted_by ? ` by ${session.deleted_by}` : '', tI18nComplete.raw('text78a10fea0bef')] }) })] })) : session.can_access === false ? (_jsxs(BannerAlert, { variant: "default", children: [_jsx(BannerAlertTitle, { children: tI18nComplete.raw('text4acf3c9c6c5e') }), _jsx(BannerAlertDescription, { children: tI18nComplete.raw('text1f5bdc1c9cf0') })] })) : null, access.canOpen ? (_jsx("div", { className: "flex justify-end border-t pt-4", children: _jsx(Button, { variant: "outline", size: "sm", asChild: true, children: _jsxs(Link, { href: href, children: [tI18nComplete.raw('textb205bb47f81a'), _jsx(ArrowSquareOutIcon, { className: "size-3.5 shrink-0" })] }) }) })) : null] }));
20
20
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * The agent board (`/projects/<id>/sessions?view=board`), Claude Code's agent
2
+ * The agent board (`/workspaces/<id>/sessions?view=board`), Claude Code's agent
3
3
  * view in Kortix's own look: every session of the project, child sessions
4
4
  * included, grouped by what it needs (Pinned, Needs input, Working, Ready for
5
5
  * review, Completed, Failed · Stopped). One input on top starts a session
@@ -44,7 +44,7 @@ function useMinuteClock() {
44
44
  return now;
45
45
  }
46
46
  /**
47
- * The agent board (`/projects/<id>/sessions?view=board`), Claude Code's agent
47
+ * The agent board (`/workspaces/<id>/sessions?view=board`), Claude Code's agent
48
48
  * view in Kortix's own look: every session of the project, child sessions
49
49
  * included, grouped by what it needs (Pinned, Needs input, Working, Ready for
50
50
  * review, Completed, Failed · Stopped). One input on top starts a session
@@ -0,0 +1,13 @@
1
+ /** `split_notice` on a served workspace (C9). Absent on an older API. */
2
+ export interface WorkspaceSplitNotice {
3
+ role: 'keeper' | 'moved';
4
+ source_name: string;
5
+ completed_at: string;
6
+ billing: 'free' | 'comped' | null;
7
+ comped_until: string | null;
8
+ }
9
+ export declare function splitNoticeOf(workspace: unknown): WorkspaceSplitNotice | null;
10
+ export declare function SplitNoticeBanner({ workspaceId, className }: {
11
+ workspaceId: string;
12
+ className?: string;
13
+ }): import("react").JSX.Element | null;
@@ -0,0 +1,59 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ /**
4
+ * The split notice (design.md C9): for 30 days after a legacy account's
5
+ * workspaces became their own workspaces, `GET /v1/workspaces/:id` carries
6
+ * `split_notice`. The workspace home and Settings › General say what changed:
7
+ * a moved workspace has its own people, billing and settings now; the keeper
8
+ * lost the others. A viewer can dismiss it; the dismissal stays in this
9
+ * browser only.
10
+ */
11
+ import { useWorkspace } from '@kortix/sdk/react';
12
+ import { XIcon } from '@phosphor-icons/react';
13
+ import { useState } from 'react';
14
+ import { useLocale, useTranslations } from '../../i18n/index.js';
15
+ import { Button } from '../../primitives/button.js';
16
+ import { Alert as BannerAlert, AlertTitle as BannerAlertTitle, AlertDescription as BannerAlertDescription, AlertActions as BannerAlertActions } from '../../primitives/alert.js';
17
+ import { formatWorkspaceDate } from '../project-selector/project-selector-model.js';
18
+ export function splitNoticeOf(workspace) {
19
+ const notice = workspace?.split_notice;
20
+ return notice && (notice.role === 'keeper' || notice.role === 'moved') ? notice : null;
21
+ }
22
+ const DISMISS_KEY = (workspaceId) => `kortix.splitNotice.dismissed.${workspaceId}`;
23
+ function readDismissed(workspaceId) {
24
+ try {
25
+ return window.localStorage.getItem(DISMISS_KEY(workspaceId)) === '1';
26
+ }
27
+ catch {
28
+ return false;
29
+ }
30
+ }
31
+ export function SplitNoticeBanner({ workspaceId, className }) {
32
+ const t = useTranslations('workspaces.splitNotice');
33
+ const locale = useLocale();
34
+ const workspace = useWorkspace(workspaceId);
35
+ const notice = splitNoticeOf(workspace.data);
36
+ const [dismissed, setDismissed] = useState(() => (typeof window === 'undefined' ? false : readDismissed(workspaceId)));
37
+ if (!notice || dismissed)
38
+ return null;
39
+ const date = formatWorkspaceDate(notice.completed_at, locale);
40
+ const body = notice.role === 'moved'
41
+ ? t('movedBody', { source: notice.source_name, date })
42
+ : t('keeperBody', { source: notice.source_name, date });
43
+ const billing = notice.role !== 'moved'
44
+ ? null
45
+ : notice.billing === 'comped'
46
+ ? t('billingComped', { date: formatWorkspaceDate(notice.comped_until, locale) })
47
+ : notice.billing === 'free'
48
+ ? t('billingFree')
49
+ : null;
50
+ return (_jsxs(BannerAlert, { variant: "default", className: className, "data-testid": "split-notice", children: [_jsx(BannerAlertTitle, { children: notice.role === 'moved' ? t('movedTitle') : t('keeperTitle') }), _jsxs(BannerAlertDescription, { children: [body, billing ? ` ${billing}` : null] }), _jsx(BannerAlertActions, { children: _jsx(Button, { variant: "ghost", size: "icon-xs", "aria-label": t('dismiss'), onClick: () => {
51
+ try {
52
+ window.localStorage.setItem(DISMISS_KEY(workspaceId), '1');
53
+ }
54
+ catch {
55
+ // Private mode: the banner hides for this view only.
56
+ }
57
+ setDismissed(true);
58
+ }, children: _jsx(XIcon, { className: "size-3.5" }) }) })] }));
59
+ }
@@ -0,0 +1,16 @@
1
+ import { type AccountMember, type WorkspaceRole } from '@kortix/sdk';
2
+ import { type ReactNode } from 'react';
3
+ /** A member row's ladder role: the served `role`, else the account role an older API sends. */
4
+ export declare function memberWorkspaceRole(member: Pick<AccountMember, 'role' | 'account_role'>): WorkspaceRole;
5
+ /**
6
+ * Leave a workspace: `POST /v1/workspaces/:id/leave`. The last owner cannot
7
+ * leave (they transfer ownership or delete the workspace), so the action is
8
+ * offered only when the caller is not an owner, or another owner exists.
9
+ * General's Danger zone and the workspace menu share it.
10
+ */
11
+ export declare function useLeaveWorkspace(workspaceId: string): {
12
+ canLeave: boolean;
13
+ workspaceName: string;
14
+ open: () => void;
15
+ dialog: ReactNode;
16
+ };
@@ -0,0 +1,60 @@
1
+ 'use client';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { leaveWorkspace, listWorkspaceMembers } from '@kortix/sdk';
4
+ import { qk, useWorkspace } from '@kortix/sdk/react';
5
+ import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
6
+ import { useState } from 'react';
7
+ import { useTranslations } from '../../i18n/index.js';
8
+ import { PROJECT_LANDING_PATH } from '../../internal/lib/onboarding/landing-destination.js';
9
+ import { forgetLastProjectId } from '../../internal/lib/onboarding/last-project-cookie.js';
10
+ import { useSettingsPanelStore } from '../../internal/stores/settings-panel-store.js';
11
+ import { ConfirmDialog } from '../../primitives/confirm-dialog.js';
12
+ import { errorToast, successToast } from '../../primitives/toast.js';
13
+ import { useUiRouter, useUiViewerId } from '../../providers/ui-provider.js';
14
+ /** A member row's ladder role: the served `role`, else the account role an older API sends. */
15
+ export function memberWorkspaceRole(member) {
16
+ return member.role ?? member.account_role ?? 'member';
17
+ }
18
+ /**
19
+ * Leave a workspace: `POST /v1/workspaces/:id/leave`. The last owner cannot
20
+ * leave (they transfer ownership or delete the workspace), so the action is
21
+ * offered only when the caller is not an owner, or another owner exists.
22
+ * General's Danger zone and the workspace menu share it.
23
+ */
24
+ export function useLeaveWorkspace(workspaceId) {
25
+ const t = useTranslations('workspaces.settings');
26
+ const queryClient = useQueryClient();
27
+ const router = useUiRouter();
28
+ const viewerId = useUiViewerId();
29
+ const [isOpen, setOpen] = useState(false);
30
+ const workspace = useWorkspace(workspaceId);
31
+ const isOwner = workspace.data?.role === 'owner';
32
+ const members = useQuery({
33
+ queryKey: ['workspace-members', workspaceId],
34
+ queryFn: () => listWorkspaceMembers(workspaceId),
35
+ enabled: isOwner,
36
+ staleTime: 30_000,
37
+ });
38
+ const ownerCount = (members.data ?? []).filter((member) => memberWorkspaceRole(member) === 'owner').length;
39
+ const canLeave = !!workspace.data && (!isOwner || ownerCount > 1);
40
+ const workspaceName = workspace.data?.name ?? '';
41
+ const leave = useMutation({
42
+ mutationFn: () => leaveWorkspace(workspaceId),
43
+ onSuccess: () => {
44
+ forgetLastProjectId(viewerId, workspaceId);
45
+ void queryClient.invalidateQueries({ queryKey: qk.projects.scope() });
46
+ void queryClient.invalidateQueries({ queryKey: qk.accounts.scope() });
47
+ successToast(t('leftToast', { name: workspaceName }));
48
+ setOpen(false);
49
+ useSettingsPanelStore.getState().close();
50
+ router.replace(PROJECT_LANDING_PATH);
51
+ },
52
+ onError: (error) => errorToast(error.message || t('leaveFailed')),
53
+ });
54
+ return {
55
+ canLeave,
56
+ workspaceName,
57
+ open: () => setOpen(true),
58
+ dialog: (_jsx(ConfirmDialog, { open: isOpen, onOpenChange: setOpen, title: t('leaveTitle'), description: t('leaveDialog', { name: workspaceName }), confirmLabel: t('leaveWorkspace'), confirmVariant: "destructive", onConfirm: () => leave.mutate(), isPending: leave.isPending })),
59
+ };
60
+ }
@@ -48,8 +48,8 @@ export function ProjectFilesNavItem({ projectId }) {
48
48
  const conflicts = target === 'drive' ? (drive.data?.openConflicts ?? 0) : 0;
49
49
  const isActive = !!pathname &&
50
50
  (target === 'drive'
51
- ? /^\/projects\/[^/]+\/drive(\/|$)/
52
- : /^\/projects\/[^/]+\/files(\/|$)/).test(pathname);
51
+ ? /^\/(?:workspaces|projects)\/[^/]+\/drive(\/|$)/
52
+ : /^\/(?:workspaces|projects)\/[^/]+\/files(\/|$)/).test(pathname);
53
53
  // The Files view cannot pick a git ref (`resolveFilesRef`,
54
54
  // `project-layout/resolve-files-ref.ts`) until it knows the project's
55
55
  // default branch — one request, `qk.project.summary(id)` — unless a
@@ -60,7 +60,7 @@ export const MEMBER_LABEL = {
60
60
  building: 'Preparing sandbox…',
61
61
  };
62
62
  export const MEMBER_TEXT = {
63
- critical: 'New sessions can’t start right now. An owner or admin of this project can fix it.',
63
+ critical: 'New sessions can’t start right now. An owner or admin of this workspace can fix it.',
64
64
  building: 'Sessions can start once it’s ready.',
65
65
  };
66
66
  export const MEMBER_TONE = {
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Pending invites at the top of the Switch Project menu. A user who already
3
- * has a project lands in it, not on the chooser, so this is where an invite
2
+ * Pending invites at the top of the Switch workspace menu. A user who already
3
+ * has a workspace lands in it, not on the chooser, so this is where an invite
4
4
  * that arrives later is found. Renders nothing when there are none.
5
5
  */
6
6
  export declare function InvitationsMenuGroup(): import("react").JSX.Element | null;
@@ -13,12 +13,12 @@ import { qk } from '@kortix/sdk/react';
13
13
  import { useMutation, useQueryClient } from '@tanstack/react-query';
14
14
  import { useUiRouter } from '../../providers/ui-provider.js';
15
15
  /**
16
- * Pending invites at the top of the Switch Project menu. A user who already
17
- * has a project lands in it, not on the chooser, so this is where an invite
16
+ * Pending invites at the top of the Switch workspace menu. A user who already
17
+ * has a workspace lands in it, not on the chooser, so this is where an invite
18
18
  * that arrives later is found. Renders nothing when there are none.
19
19
  */
20
20
  export function InvitationsMenuGroup() {
21
- const t = useTranslations('projectChooser');
21
+ const t = useTranslations('workspaces.chooser');
22
22
  const router = useUiRouter();
23
23
  const queryClient = useQueryClient();
24
24
  const setSelectedAccountId = useCurrentAccountStore((state) => state.setSelectedAccountId);
@@ -37,7 +37,7 @@ export function InvitationsMenuGroup() {
37
37
  router.push(inviteLandingPath(landing));
38
38
  },
39
39
  onError: (error) => {
40
- errorToast(error instanceof Error ? error.message : t('joinError'));
40
+ errorToast(error instanceof Error && error.message ? error.message : t('joinError'));
41
41
  },
42
42
  });
43
43
  if (invites.length === 0)
@@ -19,7 +19,7 @@ import { useEffect, useRef, useState } from 'react';
19
19
  export function sessionEmbedSnippet(projectId, sessionId, origin) {
20
20
  if (!projectId || !sessionId || !origin)
21
21
  return null;
22
- const src = `${origin}/projects/${encodeURIComponent(projectId)}/sessions/${encodeURIComponent(sessionId)}`;
22
+ const src = `${origin}/workspaces/${encodeURIComponent(projectId)}/sessions/${encodeURIComponent(sessionId)}`;
23
23
  return `<iframe src="${src}" style="height:640px;width:100%;border:0;border-radius:12px" title="Kortix session" loading="lazy"></iframe>`;
24
24
  }
25
25
  /**
@@ -27,7 +27,7 @@ function countPhrase(count, singular) {
27
27
  export function sessionAccessSummary(session) {
28
28
  const owner = sessionOwnerName(session);
29
29
  if (session.visibility === 'project')
30
- return 'Every member of this project can open it.';
30
+ return 'Every member of this workspace can open it.';
31
31
  if (session.visibility === 'restricted') {
32
32
  const sharing = session.sharing;
33
33
  const memberIds = sharing && sharing.mode === 'members' ? (sharing.memberIds ?? []) : [];
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Button } from '../../../primitives/button.js';
4
- import { InfoBanner } from '../../../primitives/info-banner.js';
4
+ import { Alert as BannerAlert, AlertDescription as BannerAlertDescription, AlertMedia as BannerAlertMedia } from '../../../primitives/alert.js';
5
5
  import Loading from '../../../primitives/loading.js';
6
6
  import { Modal, ModalBody, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalTitle, } from '../../../primitives/modal.js';
7
7
  import { errorToast, successToast } from '../../../primitives/toast.js';
@@ -27,7 +27,7 @@ import { refreshAfterShare } from './share-session-cache.js';
27
27
  */
28
28
  const SESSION_SHARING_COPY = {
29
29
  heading: 'Who can open this session',
30
- project: { label: 'Whole project', desc: 'Every member of this project.' },
30
+ project: { label: 'Whole workspace', desc: 'Every member of this workspace.' },
31
31
  private: { label: 'Only you', desc: 'Nobody else can open this session.' },
32
32
  members: { label: 'Specific people', desc: 'Only the members and groups you choose.' },
33
33
  };
@@ -105,5 +105,5 @@ export function ShareSessionModal({ projectId, session, open, onOpenChange, onSa
105
105
  // Read-only, not hidden: a person a session was shared with should
106
106
  // still be able to see who else is in it. Withholding that is what
107
107
  // sent people to the editable dialog in the first place.
108
- _jsx("p", { className: "text-foreground text-sm", "data-testid": "session-access-summary", children: session ? sessionAccessSummary(session) : null })), oversightOn ? (_jsx(InfoBanner, { tone: "neutral", icon: ShieldCheckIcon, "data-testid": "session-oversight-disclosure", children: tOversight.raw('shareDisclosure') })) : null, view.canEdit && session && publicSharesEnabled ? (_jsx(SessionEmbedSection, { projectId: projectId, sessionId: session.session_id })) : null] }), _jsxs(ModalFooter, { className: "sm:justify-between", children: [_jsx(Button, { variant: "outline-ghost", size: "sm", className: "w-full sm:w-auto", onClick: () => onOpenChange(false), disabled: save.isPending, children: view.canEdit ? 'Cancel' : 'Close' }), view.canEdit && (_jsxs(Button, { size: "sm", onClick: () => save.mutate(), disabled: save.isPending || !isSharingComplete(sharing) || blockedSelection, className: "w-full sm:w-auto", children: [save.isPending && _jsx(Loading, {}), tI18nHardcoded.raw('i18nComplete.text1509f561f241')] }))] })] }) }));
108
+ _jsx("p", { className: "text-foreground text-sm", "data-testid": "session-access-summary", children: session ? sessionAccessSummary(session) : null })), oversightOn ? (_jsxs(BannerAlert, { variant: "default", "data-testid": "session-oversight-disclosure", children: [_jsx(BannerAlertMedia, { children: _jsx(ShieldCheckIcon, {}) }), _jsx(BannerAlertDescription, { children: tOversight.raw('shareDisclosure') })] })) : null, view.canEdit && session && publicSharesEnabled ? (_jsx(SessionEmbedSection, { projectId: projectId, sessionId: session.session_id })) : null] }), _jsxs(ModalFooter, { className: "sm:justify-between", children: [_jsx(Button, { variant: "outline-ghost", size: "sm", className: "w-full sm:w-auto", onClick: () => onOpenChange(false), disabled: save.isPending, children: view.canEdit ? 'Cancel' : 'Close' }), view.canEdit && (_jsxs(Button, { size: "sm", onClick: () => save.mutate(), disabled: save.isPending || !isSharingComplete(sharing) || blockedSelection, className: "w-full sm:w-auto", children: [save.isPending && _jsx(Loading, {}), tI18nHardcoded.raw('i18nComplete.text1509f561f241')] }))] })] }) }));
109
109
  }
@@ -5,18 +5,17 @@ import { ProjectGoalsNavItem } from './footer/project-goals-nav.js';
5
5
  import { ProjectArtifactsNavItem } from './footer/project-artifacts-nav.js';
6
6
  import { ProjectFilesNavItem } from './footer/project-files-nav.js';
7
7
  import { CustomizeGlyph, useCapabilityAccess, } from '../../internal/layout/project-settings-nav.js';
8
- import { isProjectAdminPath, ProjectCapabilityNav, useOpenNewAgent } from '../../internal/layout/project-capability-nav.js';
8
+ import { isProjectAdminPath, useOpenNewAgent } from '../../internal/layout/project-capability-nav.js';
9
9
  import { PROJECT_ACTIONS } from '../../internal/lib/project-actions.js';
10
10
  import { useProjectCan } from '../../internal/lib/use-project-can.js';
11
11
  import { Button } from '../../primitives/button.js';
12
12
  import Hint from '../../primitives/hint.js';
13
- import { cn } from '../../lib/utils.js';
14
13
  import { SidebarMenuButton, SidebarMenuItem, useSidebar } from '../../primitives/sidebar.js';
15
14
  import { useIsMobile } from '../../internal/hooks/index.js';
16
15
  import { useTranslations } from '../../i18n/index.js';
17
- import { CaretRightIcon, PlusIcon } from '@phosphor-icons/react';
18
- import { useUiPathname } from '../../providers/ui-provider.js';
19
- import { useEffect, useState } from 'react';
16
+ import { PlusIcon } from '@phosphor-icons/react';
17
+ import { UiLink as Link, useUiPathname } from '../../providers/ui-provider.js';
18
+ import { adminPath } from '../../lib/routes.js';
20
19
  /**
21
20
  * The nav rows under New session, in one fixed order. Each row applies its
22
21
  * own flag and permission gate and renders nothing when the project does not
@@ -28,14 +27,12 @@ export function ProjectNavItems({ projectId }) {
28
27
  return (_jsx(_Fragment, { children: NAV_ROWS.map((id) => (_jsx(NavItem, { id: id, projectId: projectId }, id))) }));
29
28
  }
30
29
  /**
31
- * Customize, for the people who may configure the project. Most configuring
32
- * happens by asking an agent in a session, so this stays one disclosure: the
33
- * row toggles the project's agents, Review, Models and Settings
34
- * (`ProjectCapabilityNav`). On hover, its right edge holds + (New agent);
35
- * All agents is a row inside the disclosure. Open by itself on an agent or
36
- * Customize page; a click overrides that until you cross between those
37
- * contexts. Absent when the caller may open no capability page (same gate
38
- * as the tab bar).
30
+ * Customize, for the people who may configure the project: one link into
31
+ * Workspace settings, on Agents when the caller may read them (Customize is
32
+ * agent-centric). Since 2026-11-08 Customize IS that panel, so there is no
33
+ * disclosure here: the panel's rail lists Agents, Models, Skills and the
34
+ * rest, and Review is part of the Inbox. On hover, the row's right edge
35
+ * holds + (New agent). Absent when the caller may open no capability page.
39
36
  */
40
37
  function CustomizeNavEntry({ projectId }) {
41
38
  const t = useTranslations('sidebar');
@@ -46,11 +43,6 @@ function CustomizeNavEntry({ projectId }) {
46
43
  const openNewAgent = useOpenNewAgent();
47
44
  const isMobile = useIsMobile();
48
45
  const { setOpenMobile } = useSidebar();
49
- // `includes` tolerates the locale prefix the host may not strip.
50
- const onCustomizePage = !!pathname && (pathname.includes('/customize') || isProjectAdminPath(pathname));
51
- const [override, setOverride] = useState(null);
52
- useEffect(() => setOverride(null), [onCustomizePage]);
53
- const open = override ?? onCustomizePage;
54
46
  if (!access.settled || access.tabs.length === 0)
55
47
  return null;
56
48
  const hasAgents = access.tabs.includes('agent');
@@ -58,13 +50,10 @@ function CustomizeNavEntry({ projectId }) {
58
50
  if (isMobile)
59
51
  setOpenMobile(false);
60
52
  };
61
- return (_jsxs(_Fragment, { children: [_jsxs(SidebarMenuItem, { className: "group/customize", children: [_jsxs(SidebarMenuButton, { onClick: () => setOverride(!open), "aria-expanded": open,
62
- // The caret is the Sessions header's: 12px (beats the button's
63
- // `[&_svg]:size-4!`), shown on hover, turned when open.
64
- className: "group/menu-button text-sidebar-foreground pr-8 [&>svg:last-child]:size-3!", children: [_jsx("span", { className: "shrink-0", children: _jsx(CustomizeGlyph, {}) }), _jsx("span", { className: "truncate", children: t('customize') }), _jsx(CaretRightIcon, { "aria-hidden": true, className: cn('text-muted-foreground duration-normal size-3 shrink-0 opacity-0 transition-transform ease-out group-focus-within/customize:opacity-100 group-hover/customize:opacity-100', open && 'rotate-90') })] }), hasAgents && canCreate && openNewAgent ? (_jsx(Hint, { side: "top", label: tTabs('newAgent'), children: _jsx(Button, { variant: "secondary", size: "icon-xs", type: "button", "aria-label": tTabs('newAgent'), className: "absolute top-1/2 right-1 -translate-y-1/2 opacity-100 transition-opacity group-focus-within/customize:opacity-100 group-hover/customize:opacity-100 md:opacity-0", onClick: () => {
65
- close();
66
- openNewAgent();
67
- }, children: _jsx(PlusIcon, { className: "size-4" }) }) })) : null] }), open ? _jsx(ProjectCapabilityNav, { projectId: projectId }) : null] }));
53
+ return (_jsxs(SidebarMenuItem, { className: "group/customize", children: [_jsx(SidebarMenuButton, { asChild: true, isActive: isProjectAdminPath(pathname), className: "text-sidebar-foreground pr-8", children: _jsxs(Link, { href: hasAgents ? adminPath(projectId, 'agents') : adminPath(projectId), prefetch: true, onClick: close, children: [_jsx("span", { className: "shrink-0", children: _jsx(CustomizeGlyph, {}) }), _jsx("span", { className: "truncate", children: t('customize') })] }) }), hasAgents && canCreate && openNewAgent ? (_jsx(Hint, { side: "top", label: tTabs('newAgent'), children: _jsx(Button, { variant: "secondary", size: "icon-xs", type: "button", "aria-label": tTabs('newAgent'), className: "absolute top-1/2 right-1 -translate-y-1/2 opacity-100 transition-opacity group-focus-within/customize:opacity-100 group-hover/customize:opacity-100 md:opacity-0", onClick: () => {
54
+ close();
55
+ openNewAgent();
56
+ }, children: _jsx(PlusIcon, { className: "size-4" }) }) })) : null] }));
68
57
  }
69
58
  function NavItem({ id, projectId }) {
70
59
  switch (id) {
@@ -5,7 +5,6 @@ import { Button } from '../../primitives/button.js';
5
5
  import Hint from '../../primitives/hint.js';
6
6
  import { Kbd, KbdGroup } from '../../primitives/kbd.js';
7
7
  import { Sidebar, SidebarContent, SidebarGroup, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarRail, useSidebar, } from '../../primitives/sidebar.js';
8
- import { NotificationBell } from '../../internal/notifications/notification-bell.js';
9
8
  import { ComputerConnectModal } from '../../internal/tunnel/computer-connect.js';
10
9
  import { ConnectMcpModal } from '../../internal/layout/connect-mcp-modal.js';
11
10
  import { ProjectMcpNavItem } from './footer/project-mcp-nav.js';
@@ -31,7 +30,9 @@ import { ProjectChromeNavItem } from './footer/project-chrome-nav.js';
31
30
  import { CHROME_UI_ENABLED } from '../../internal/chrome/use-chrome-offered.js';
32
31
  import { MagnifyingGlassIcon, NavigationArrowIcon, } from '@phosphor-icons/react';
33
32
  import { UiLink as Link } from '../../providers/ui-provider.js';
34
- import { useCallback, useEffect, useRef, useState } from 'react';
33
+ import { useWorkspaceSettingsRailStore } from '../../internal/stores/workspace-settings-rail-store.js';
34
+ import { SettingsReturnTracker, SidebarDrill } from './sidebar-drill.js';
35
+ import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
35
36
  import { SidebarBalanceWarning } from './footer/project-balance-warning.js';
36
37
  import { SidebarUpgradeButton } from './footer/project-upgrade-button.js';
37
38
  import { SidebarGlyph as PanelLeft } from '../../icons/sidebar-toggle.js';
@@ -49,6 +50,19 @@ export function ProjectSidebar({ projectId, menu, onOpenSearch, }) {
49
50
  // Mounted outside <Sidebar>: the mobile sheet unmounts its content on close.
50
51
  const [computerConnectOpen, setComputerConnectOpen] = useState(false);
51
52
  const [connectMcpOpen, setConnectMcpOpen] = useState(false);
53
+ // Settings drill (`SidebarDrill`): a click there closes the mobile sheet.
54
+ const handleDrilledNavigate = useCallback(() => {
55
+ if (isMobile)
56
+ setOpenMobile(false);
57
+ }, [isMobile, setOpenMobile]);
58
+ // The page hides its own rail while this panel is docked open on the
59
+ // desktop. The value does not depend on the route, so it is already right
60
+ // when the settings page renders its first frame: no rail flashes in.
61
+ const setSidebarDocked = useWorkspaceSettingsRailStore((s) => s.setSidebarDocked);
62
+ useLayoutEffect(() => {
63
+ setSidebarDocked(isExpanded && !isMobile);
64
+ }, [isExpanded, isMobile, setSidebarDocked]);
65
+ useLayoutEffect(() => () => setSidebarDocked(false), [setSidebarDocked]);
52
66
  const accountId = useBillingAccountId();
53
67
  // Chat (`chat`): the spaces list replaces New session, and the session list
54
68
  // moves below it, closed by default (fail-closed: off until the project answers).
@@ -107,13 +121,10 @@ export function ProjectSidebar({ projectId, menu, onOpenSearch, }) {
107
121
  // the square positioning box — while the visible card is the rounded
108
122
  // inner box, which already carries `bg-sidebar`. Painting it twice put a
109
123
  // square fill behind the flyout card and it showed at all four corners.
110
- className: "[scrollbar-width:'none'] [-ms-overflow-style:'none'] [&::-webkit-scrollbar]:hidden", children: [_jsx(SidebarHeader, { className: "kx-project-sidebar-header space-y-2", "data-peek": peek ? '' : undefined, children: _jsxs("div", { className: cn('flex w-full items-center gap-1', !peek && 'kx-titlebar-row kx-titlebar-band-height kx-project-sidebar-titlebar'), children: [menu ? _jsx("div", { className: "min-w-0", children: menu }) : null, _jsxs("div", { className: "ml-auto flex shrink-0 items-center gap-0.5", children: [_jsx(NotificationBell, { projectId: projectId, surface: "bg-sidebar", onNavigate: () => {
111
- if (isMobile)
112
- setOpenMobile(false);
113
- } }), onOpenSearch && (_jsx(Hint, { side: "bottom", label: _jsxs("span", { className: "flex items-center gap-1.5", children: [t('search'), !isMobile && (_jsxs(KbdGroup, { children: [_jsx(Kbd, { className: "font-mono", children: modSymbol }), _jsx(Kbd, { className: "font-mono", children: "K" })] }))] }), children: _jsx(Button, { type: "button", "aria-label": t('search'), variant: "ghost", size: "icon", onClick: handleOpenSearch,
124
+ className: "[scrollbar-width:'none'] [-ms-overflow-style:'none'] [&::-webkit-scrollbar]:hidden", children: [_jsx(SidebarHeader, { className: "kx-project-sidebar-header space-y-2", "data-peek": peek ? '' : undefined, children: _jsxs("div", { className: cn('flex w-full items-center gap-1', !peek && 'kx-titlebar-row kx-titlebar-band-height kx-project-sidebar-titlebar'), children: [menu ? _jsx("div", { className: "min-w-0", children: menu }) : null, _jsxs("div", { className: "ml-auto flex shrink-0 items-center gap-0.5", children: [onOpenSearch && (_jsx(Hint, { side: "bottom", label: _jsxs("span", { className: "flex items-center gap-1.5", children: [t('search'), !isMobile && (_jsxs(KbdGroup, { children: [_jsx(Kbd, { className: "font-mono", children: modSymbol }), _jsx(Kbd, { className: "font-mono", children: "K" })] }))] }), children: _jsx(Button, { type: "button", "aria-label": t('search'), variant: "ghost", size: "icon", onClick: handleOpenSearch,
114
125
  // The palette's only pointer-reachable entry: the ≈26px ghost
115
126
  // box clears the 44px floor with the vertical-only extension —
116
127
  // vertical-only because this titlebar row packs several
117
128
  // controls side by side (KRTX-2004).
118
- className: "shrink-0 hit-area-y-3", children: _jsx(MagnifyingGlassIcon, { className: "size-4" }) }) })), isMobile && (_jsx(Button, { type: "button", "aria-label": tCommon('close'), variant: "ghost", size: "icon", onClick: () => setOpenMobile(false), className: "shrink-0 hit-area-y-3", children: _jsx(Close, {}) })), !isMobile && !peek && (_jsx(Hint, { side: "bottom", label: _jsxs("span", { className: "flex items-center gap-1.5", children: [isExpanded ? t('collapse') : t('pin'), _jsxs(KbdGroup, { children: [_jsx(Kbd, { className: "font-mono", children: modSymbol }), _jsx(Kbd, { className: "font-mono", children: "B" })] })] }), children: _jsx(Button, { type: "button", "aria-label": isExpanded ? t('collapse') : t('pin'), variant: "ghost", size: "icon", onClick: toggleSidebar, className: "shrink-0", children: _jsx(PanelLeft, { className: "cn-rtl-flip" }) }) }))] })] }) }), _jsx(SidebarContent, { className: "relative min-h-0 flex-1 [scrollbar-width:'none'] overflow-hidden [-ms-overflow-style:'none'] [&::-webkit-scrollbar]:hidden [&_[data-sidebar=menu-button]]:pl-2", children: _jsxs("div", { className: "flex h-full min-h-0 flex-col space-y-2", children: [chat ? null : (_jsx(SidebarGroup, { className: "py-0", children: _jsxs(SidebarMenu, { children: [chat ? null : (_jsx(SidebarMenuItem, { children: creatingSession ? (_jsx(SidebarMenuButton, { disabled: true, "aria-busy": true, className: "group/menu-button text-sidebar-foreground relative", children: newSessionRowBody })) : (_jsx(SidebarMenuButton, { asChild: true, className: "group/menu-button text-sidebar-foreground relative", children: _jsx(Link, { href: uiRoutes().project(projectId), prefetch: true, onClick: handleNewSessionClick, children: newSessionRowBody }) })) })), _jsx(ProjectNavItems, { projectId: projectId })] }) })), _jsx(SidebarGroup, { className: "min-h-0 flex-1 flex-col py-0", ref: sessionsGroupRef, children: chat ? (_jsxs(_Fragment, { children: [_jsx("div", { className: "min-h-0 flex-1", children: _jsx(ProjectSpacesNav, { projectId: projectId }) }), _jsx(SidebarMoreGroup, { projectId: projectId, footer: _jsx(SidebarMenu, { className: "gap-1", children: connectRows }) })] })) : (_jsx(ProjectSessionList, { projectId: projectId })) }), _jsx(SidebarGroup, { className: "mt-auto", children: _jsxs(SidebarMenu, { className: "gap-1", children: [_jsx(ProjectRepositoryDisconnectedAlert, { projectId: projectId }), _jsx(ProjectSandboxAlert, { projectId: projectId }), _jsx(ProjectManifestIssuesAlert, { projectId: projectId }), _jsx(SidebarBalanceWarning, { accountId: accountId }), chat ? null : connectRows] }) })] }) }), _jsx(SidebarRail, { "aria-label": t('resize'), title: t('resizeHelp') })] }), _jsx(ComputerConnectModal, { projectId: projectId, open: computerConnectOpen, onOpenChange: setComputerConnectOpen }), _jsx(AppsModal, { chrome: chrome, onOpenComputer: () => setComputerConnectOpen(true), onOpenMcp: () => setConnectMcpOpen(true) }), _jsx(ConnectMcpModal, { open: connectMcpOpen, onOpenChange: setConnectMcpOpen })] }));
129
+ className: "shrink-0 hit-area-y-3", children: _jsx(MagnifyingGlassIcon, { className: "size-4" }) }) })), isMobile && (_jsx(Button, { type: "button", "aria-label": tCommon('close'), variant: "ghost", size: "icon", onClick: () => setOpenMobile(false), className: "shrink-0 hit-area-y-3", children: _jsx(Close, {}) })), !isMobile && !peek && (_jsx(Hint, { side: "bottom", label: _jsxs("span", { className: "flex items-center gap-1.5", children: [isExpanded ? t('collapse') : t('pin'), _jsxs(KbdGroup, { children: [_jsx(Kbd, { className: "font-mono", children: modSymbol }), _jsx(Kbd, { className: "font-mono", children: "B" })] })] }), children: _jsx(Button, { type: "button", "aria-label": isExpanded ? t('collapse') : t('pin'), variant: "ghost", size: "icon", onClick: toggleSidebar, className: "shrink-0", children: _jsx(PanelLeft, { className: "cn-rtl-flip" }) }) }))] })] }) }), _jsx(SidebarContent, { className: "relative min-h-0 flex-1 [scrollbar-width:'none'] overflow-hidden [-ms-overflow-style:'none'] [&::-webkit-scrollbar]:hidden [&_[data-sidebar=menu-button]]:pl-2", children: _jsxs(SidebarDrill, { projectId: projectId, onNavigate: handleDrilledNavigate, children: [_jsx(SidebarGroup, { className: "py-0", children: _jsxs(SidebarMenu, { children: [chat ? null : (_jsx(SidebarMenuItem, { children: creatingSession ? (_jsx(SidebarMenuButton, { disabled: true, "aria-busy": true, className: "group/menu-button text-sidebar-foreground relative", children: newSessionRowBody })) : (_jsx(SidebarMenuButton, { asChild: true, className: "group/menu-button text-sidebar-foreground relative", children: _jsx(Link, { href: uiRoutes().project(projectId), prefetch: true, onClick: handleNewSessionClick, children: newSessionRowBody }) })) })), chat ? null : _jsx(ProjectNavItems, { projectId: projectId })] }) }), _jsx(SidebarGroup, { className: "min-h-0 flex-1 flex-col py-0", ref: sessionsGroupRef, children: chat ? (_jsxs(_Fragment, { children: [_jsx("div", { className: "min-h-0 flex-1", children: _jsx(ProjectSpacesNav, { projectId: projectId }) }), _jsx(SidebarMoreGroup, { projectId: projectId, footer: _jsx(SidebarMenu, { className: "gap-1", children: connectRows }) })] })) : (_jsx(ProjectSessionList, { projectId: projectId })) }), _jsx(SidebarGroup, { className: "mt-auto", children: _jsxs(SidebarMenu, { className: "gap-1", children: [_jsx(ProjectRepositoryDisconnectedAlert, { projectId: projectId }), _jsx(ProjectSandboxAlert, { projectId: projectId }), _jsx(ProjectManifestIssuesAlert, { projectId: projectId }), _jsx(SidebarBalanceWarning, { accountId: accountId }), chat ? null : connectRows] }) })] }) }), _jsx(SidebarRail, { "aria-label": t('resize'), title: t('resizeHelp') })] }), _jsx(SettingsReturnTracker, { projectId: projectId }), _jsx(ComputerConnectModal, { projectId: projectId, open: computerConnectOpen, onOpenChange: setComputerConnectOpen }), _jsx(AppsModal, { chrome: chrome, onOpenComputer: () => setComputerConnectOpen(true), onOpenMcp: () => setConnectMcpOpen(true) }), _jsx(ConnectMcpModal, { open: connectMcpOpen, onOpenChange: setConnectMcpOpen })] }));
119
130
  }
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useProjectSessions, useProjectSpaces, useSessionAsks } from '@kortix/sdk/react';
4
- import { useReviewSessionSummary } from '../../internal/hooks/use-review-session-summary.js';
3
+ import { useProjectSessions, useProjectSpaces } from '@kortix/sdk/react';
4
+ import { useReviewNeedsYouCount } from '../../internal/hooks/use-review-session-summary.js';
5
5
  import { MY_KORTIX_AGENT_NAME } from '../../_vendor/kortix-shared.js';
6
6
  import { CheckIcon, LockSimpleIcon, PlusIcon } from '@phosphor-icons/react';
7
7
  import { useMemo, useState } from 'react';
@@ -32,19 +32,10 @@ function moveFocus(event) {
32
32
  event.preventDefault();
33
33
  rows[Math.max(0, Math.min(rows.length - 1, index + (event.key === 'ArrowDown' ? 1 : -1)))]?.focus();
34
34
  }
35
- /** `href`, or a page under it. */
35
+ /** `href`, or a page under it. A query (`/inbox?view=review`) is not part of the match. */
36
36
  function isAt(pathname, href) {
37
- return !!pathname && (pathname === href || pathname.startsWith(`${href}/`));
38
- }
39
- /**
40
- * What waits on the person across the project, the Customize nav's number:
41
- * the review summary's "needs you", plus the agents' questions and permission
42
- * asks (`useSessionAsks`). Connector approvals are already in the summary.
43
- */
44
- function useReviewBadgeCount(projectId) {
45
- const reviewNeedsYou = useReviewSessionSummary(projectId, { enabled: true }).totalNeedsYou;
46
- const asks = useSessionAsks(projectId).data?.asks;
47
- return reviewNeedsYou + (asks?.filter((ask) => ask.kind !== 'approval').length ?? 0);
37
+ const path = href.split('?')[0];
38
+ return !!pathname && (pathname === path || pathname.startsWith(`${path}/`));
48
39
  }
49
40
  /**
50
41
  * The sidebar under the `chat` flag: Spaces only. Review first, then the
@@ -67,7 +58,7 @@ export function ProjectSpacesNav({ projectId }) {
67
58
  const chatHref = `${uiRoutes().project(projectId)}/chat`;
68
59
  // The Review page on its own route (`reviewHref`), beside this sidebar.
69
60
  const review = reviewHref(projectId);
70
- const openAsks = useReviewBadgeCount(projectId);
61
+ const openAsks = useReviewNeedsYouCount(projectId);
71
62
  const hrefOf = (space) => space.kind === 'dm' ? uiRoutes().dm(projectId, space.dm_agent_name ?? '') : uiRoutes().channel(projectId, space.slug ?? '');
72
63
  return (_jsxs(FadedScrollArea, { fadeColor: "from-background", className: "h-full min-h-0", children: [_jsxs(SidebarMenu, { className: "gap-px", onKeyDown: moveFocus, children: [review ? (
73
64
  // Spacing, not a rule, sets Review apart from the spaces.