@kortix/ui 0.15.10 → 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 (469) hide show
  1. package/dist/_vendor/kortix-shared.js +769 -76
  2. package/dist/_vendor/shared/app-config.d.ts +6 -30
  3. package/dist/_vendor/shared/channel-descriptors.d.ts +0 -34
  4. package/dist/_vendor/shared/channel-header.d.ts +2 -1
  5. package/dist/_vendor/shared/connector-sections.d.ts +0 -25
  6. package/dist/_vendor/shared/file-tags.d.ts +2 -1
  7. package/dist/_vendor/shared/my-kortix-agent.d.ts +5 -3
  8. package/dist/_vendor/shared/pasted-content.d.ts +0 -4
  9. package/dist/_vendor/shared/pixel-mark.d.ts +0 -17
  10. package/dist/_vendor/shared/project-glyphs.d.ts +0 -1
  11. package/dist/_vendor/shared/session/attachment-tile.d.ts +8 -0
  12. package/dist/_vendor/shared/workspace-settings.d.ts +3 -0
  13. package/dist/access/access/copy-row.d.ts +7 -1
  14. package/dist/access/access/copy-row.js +2 -2
  15. package/dist/animated-copy-icon.js +2 -1
  16. package/dist/browser/sandbox-browser-chrome.d.ts +2 -1
  17. package/dist/browser/sandbox-browser-chrome.js +1 -1
  18. package/dist/customize/agents/agent-cover-card.d.ts +1 -1
  19. package/dist/customize/agents/agent-cover-card.js +10 -2
  20. package/dist/customize/agents/agent-filter.js +3 -1
  21. package/dist/customize/agents/agent-model-view.d.ts +11 -1
  22. package/dist/customize/agents/agent-model-view.js +12 -1
  23. package/dist/customize/agents/agent-overview.d.ts +10 -0
  24. package/dist/customize/agents/agent-overview.js +5 -4
  25. package/dist/customize/agents/agent-page-chrome.d.ts +5 -6
  26. package/dist/customize/agents/agent-page-chrome.js +16 -13
  27. package/dist/customize/agents/agent-page.js +25 -34
  28. package/dist/customize/agents/agent-tabs.d.ts +3 -0
  29. package/dist/customize/agents/agent-tabs.js +3 -0
  30. package/dist/customize/agents/agents-page.js +3 -3
  31. package/dist/customize/agents/create-agent-modal.d.ts +9 -0
  32. package/dist/customize/agents/create-agent-modal.js +21 -3
  33. package/dist/customize/agents/use-default-agent.js +2 -2
  34. package/dist/customize/connectors/connector-identity.d.ts +11 -2
  35. package/dist/customize/connectors/connector-identity.js +16 -4
  36. package/dist/customize/connectors/connectors-page.js +10 -6
  37. package/dist/customize/connectors/detail/app-page.js +2 -2
  38. package/dist/customize/connectors/detail/connector-triggers.js +1 -1
  39. package/dist/customize/connectors/install/install-dialog.d.ts +2 -0
  40. package/dist/customize/connectors/install/install-dialog.js +6 -1
  41. package/dist/customize/connectors/use-agent-access.d.ts +2 -0
  42. package/dist/customize/evals/eval-compare-view.d.ts +10 -0
  43. package/dist/customize/evals/eval-compare-view.js +68 -0
  44. package/dist/customize/evals/eval-dataset-view.d.ts +20 -0
  45. package/dist/customize/evals/eval-dataset-view.js +81 -0
  46. package/dist/customize/evals/eval-datasets-page.d.ts +25 -0
  47. package/dist/customize/evals/eval-datasets-page.js +91 -0
  48. package/dist/customize/evals/eval-job-view.d.ts +12 -0
  49. package/dist/customize/evals/eval-job-view.js +360 -0
  50. package/dist/customize/evals/eval-jobs-page.d.ts +4 -0
  51. package/dist/customize/evals/eval-jobs-page.js +69 -0
  52. package/dist/customize/evals/eval-meta.d.ts +97 -0
  53. package/dist/customize/evals/eval-meta.js +228 -0
  54. package/dist/customize/evals/eval-task-view.d.ts +13 -0
  55. package/dist/customize/evals/eval-task-view.js +123 -0
  56. package/dist/customize/evals/eval-tasks-page.d.ts +8 -0
  57. package/dist/customize/evals/eval-tasks-page.js +56 -0
  58. package/dist/customize/evals/eval-ui.d.ts +97 -0
  59. package/dist/customize/evals/eval-ui.js +153 -0
  60. package/dist/customize/evals/evals-page.d.ts +10 -0
  61. package/dist/customize/evals/evals-page.js +56 -0
  62. package/dist/customize/evals/run-eval-modal.d.ts +28 -0
  63. package/dist/customize/evals/run-eval-modal.js +167 -0
  64. package/dist/customize/project-settings/project-admin-sections.d.ts +3 -2
  65. package/dist/customize/project-settings/project-admin-sections.js +6 -1
  66. package/dist/customize/providers/provider-connect.d.ts +13 -0
  67. package/dist/customize/providers/provider-connect.js +29 -5
  68. package/dist/customize/providers/provider-sheet.js +5 -4
  69. package/dist/customize/sections/component/teams-byo-wizard.js +4 -1
  70. package/dist/customize/sections/view/gateway/gateway-overview.d.ts +5 -0
  71. package/dist/customize/sections/view/gateway/gateway-overview.js +32 -6
  72. package/dist/customize/sections/view/gateway/routing-parts.d.ts +6 -0
  73. package/dist/customize/sections/view/gateway/routing-parts.js +21 -13
  74. package/dist/customize/sections/view/git-view.d.ts +19 -1
  75. package/dist/customize/sections/view/git-view.js +7 -3
  76. package/dist/customize/sections/view/manifest-issue-list.d.ts +16 -0
  77. package/dist/customize/sections/view/manifest-issue-list.js +41 -0
  78. package/dist/customize/sections/view/manifest-issues-row.d.ts +24 -0
  79. package/dist/customize/sections/view/manifest-issues-row.js +39 -0
  80. package/dist/customize/sections/view/sandbox-provider-coverage.d.ts +7 -1
  81. package/dist/customize/sections/view/sandbox-provider-coverage.js +7 -5
  82. package/dist/customize/sections/view/secrets-view.d.ts +13 -0
  83. package/dist/customize/sections/view/secrets-view.js +10 -6
  84. package/dist/customize/sections/view/subscription-usage.d.ts +2 -7
  85. package/dist/customize/sections/view/subscription-usage.js +4 -8
  86. package/dist/customize/settings/settings-tab-header.js +12 -3
  87. package/dist/customize/settings/tabs/experimental-tab.d.ts +16 -5
  88. package/dist/customize/settings/tabs/experimental-tab.js +36 -11
  89. package/dist/customize/settings/tabs/general-tab.js +1 -1
  90. package/dist/customize/settings/tabs/sandbox-tab.d.ts +10 -0
  91. package/dist/customize/settings/tabs/sandbox-tab.js +27 -4
  92. package/dist/customize/settings/tabs/snapshots-tab.d.ts +31 -0
  93. package/dist/customize/settings/tabs/snapshots-tab.js +61 -5
  94. package/dist/customize/settings/tabs/workspace-keys.js +6 -3
  95. package/dist/customize/shared/capability-page-shell.js +9 -1
  96. package/dist/customize/shared/catalog/catalog-card.d.ts +1 -1
  97. package/dist/customize/shared/catalog/catalog-card.js +15 -5
  98. package/dist/customize/shared/customize-tab-bar.js +1 -1
  99. package/dist/customize/shared/new-entity-menu.d.ts +1 -1
  100. package/dist/customize/shared/new-entity-menu.js +38 -1
  101. package/dist/customize/triggers/runtime-triggers.d.ts +4 -0
  102. package/dist/customize/triggers/runtime-triggers.js +33 -3
  103. package/dist/customize/triggers/schedule/event-trigger-copy.js +1 -1
  104. package/dist/customize/triggers/schedule/post-to-field.js +2 -2
  105. package/dist/customize/triggers/schedule/schedule-detail-sheet.js +5 -4
  106. package/dist/customize/triggers/schedule/then-fields.d.ts +5 -1
  107. package/dist/customize/triggers/schedule/then-fields.js +23 -3
  108. package/dist/customize/triggers/schedule/trigger-callouts.js +1 -1
  109. package/dist/customize/triggers/schedule/trigger-composer-logic.d.ts +27 -0
  110. package/dist/customize/triggers/schedule/trigger-composer-logic.js +51 -5
  111. package/dist/customize/triggers/schedule/trigger-composer.js +19 -13
  112. package/dist/customize/triggers/schedule/trigger-edit-logic.js +25 -5
  113. package/dist/customize/triggers/schedule/trigger-filter.d.ts +10 -3
  114. package/dist/customize/triggers/schedule/trigger-filter.js +7 -6
  115. package/dist/customize/triggers/schedule/trigger-readonly.js +1 -1
  116. package/dist/customize/triggers/schedule/trigger-runs-panel.js +1 -1
  117. package/dist/customize/triggers/schedule/when-event.js +1 -1
  118. package/dist/customize/triggers/schedule/when-schedule.d.ts +5 -1
  119. package/dist/customize/triggers/schedule/when-schedule.js +16 -1
  120. package/dist/customize/triggers/schedule-view.js +6 -3
  121. package/dist/files/project/components/drive-explorer.js +33 -70
  122. package/dist/files/project/components/drive-grid-view.d.ts +2 -31
  123. package/dist/files/project/components/drive-grid-view.js +12 -22
  124. package/dist/files/project/components/drive-list-view.d.ts +3 -30
  125. package/dist/files/project/components/drive-list-view.js +8 -18
  126. package/dist/files/project/components/drive-selection-bar.d.ts +4 -5
  127. package/dist/files/project/components/drive-selection-bar.js +13 -20
  128. package/dist/files/project/components/explorer-listing.d.ts +48 -0
  129. package/dist/files/project/components/explorer-listing.js +64 -0
  130. package/dist/files/project/components/file-explorer-page.js +7 -204
  131. package/dist/files/project/components/file-thumbnail.js +3 -1
  132. package/dist/files/project/components/manifest-issue-mark.d.ts +9 -0
  133. package/dist/files/project/components/manifest-issue-mark.js +26 -0
  134. package/dist/files/project/hooks/use-change-requests.d.ts +10 -0
  135. package/dist/files/project/hooks/use-change-requests.js +17 -0
  136. package/dist/files/project/manifest-annotations.d.ts +16 -0
  137. package/dist/files/project/manifest-annotations.js +19 -0
  138. package/dist/files/project/store/version-store.d.ts +1 -1
  139. package/dist/files/project/upload-batch.d.ts +20 -0
  140. package/dist/files/project/upload-batch.js +20 -0
  141. package/dist/files/runtime/hooks/use-binary-blob.js +3 -2
  142. package/dist/files/runtime/hooks/use-file-content.js +3 -2
  143. package/dist/files/runtime/hooks/use-file-list.js +1 -2
  144. package/dist/files/runtime/hooks/use-file-mutations.js +69 -6
  145. package/dist/files/runtime/hooks/use-file-refresh.d.ts +4 -0
  146. package/dist/files/runtime/hooks/use-file-refresh.js +6 -0
  147. package/dist/files/tree/components/file-tree-item.js +1 -4
  148. package/dist/files/viewer/file-annotations.d.ts +18 -0
  149. package/dist/files/viewer/file-annotations.js +21 -0
  150. package/dist/files/viewer/file-content-renderer.js +1 -1
  151. package/dist/files/viewer/file-viewer.js +2 -1
  152. package/dist/files/viewer/index.d.ts +1 -0
  153. package/dist/files/viewer/index.js +1 -0
  154. package/dist/files/viewer/use-file-content-state.js +8 -1
  155. package/dist/i18n/en.d.ts +544 -46
  156. package/dist/i18n/en.js +593 -95
  157. package/dist/i18n/ui-catalog/remaining-ui-translation-keys.generated.js +0 -4
  158. package/dist/icons/caret-right-solid.d.ts +11 -0
  159. package/dist/icons/caret-right-solid.js +15 -0
  160. package/dist/internal/auth/auth-art.d.ts +12 -0
  161. package/dist/internal/auth/auth-art.js +118 -0
  162. package/dist/internal/auth/auth-card-shell.d.ts +14 -10
  163. package/dist/internal/auth/auth-card-shell.js +20 -31
  164. package/dist/internal/auth/auth-consent.d.ts +3 -1
  165. package/dist/internal/auth/auth-consent.js +2 -2
  166. package/dist/internal/auth/auth-primitives.d.ts +26 -1
  167. package/dist/internal/auth/auth-primitives.js +37 -8
  168. package/dist/internal/connector-logo/connector-logo.d.ts +2 -1
  169. package/dist/internal/connector-logo/connector-logo.js +11 -2
  170. package/dist/internal/files/file-read-retry.d.ts +18 -2
  171. package/dist/internal/files/file-read-retry.js +42 -4
  172. package/dist/internal/hooks/projects/use-new-project-session.js +5 -10
  173. package/dist/internal/hooks/use-auto-scroll-physics.d.ts +1 -1
  174. package/dist/internal/hooks/use-auto-scroll-physics.js +2 -10
  175. package/dist/internal/hooks/use-reduced-motion.d.ts +4 -0
  176. package/dist/internal/hooks/use-reduced-motion.js +12 -0
  177. package/dist/internal/hooks/use-save-shortcut.d.ts +8 -0
  178. package/dist/internal/hooks/use-save-shortcut.js +28 -0
  179. package/dist/internal/layout/connect-mcp-modal.d.ts +1 -1
  180. package/dist/internal/layout/connect-mcp-modal.js +9 -4
  181. package/dist/internal/layout/panel-chrome.d.ts +28 -0
  182. package/dist/internal/layout/panel-chrome.js +27 -0
  183. package/dist/internal/layout/project-page-header.js +5 -1
  184. package/dist/internal/layout/project-settings-nav.d.ts +17 -0
  185. package/dist/internal/layout/project-settings-nav.js +24 -0
  186. package/dist/internal/lib/browser-noise/rules/webview.js +16 -0
  187. package/dist/internal/lib/capability-tab-routes.d.ts +8 -0
  188. package/dist/internal/lib/capability-tab-routes.js +11 -0
  189. package/dist/internal/lib/manifest-health.d.ts +25 -1
  190. package/dist/internal/lib/manifest-health.js +56 -0
  191. package/dist/internal/lib/project-preamble.js +1 -1
  192. package/dist/internal/lib/web-notifications.d.ts +1 -1
  193. package/dist/internal/lib/web-notifications.js +3 -0
  194. package/dist/internal/notifications/notification-inbox.js +2 -1
  195. package/dist/internal/notifications/notification-rows.d.ts +1 -1
  196. package/dist/internal/notifications/notification-rows.js +15 -1
  197. package/dist/internal/selection/selection-bar.d.ts +2 -8
  198. package/dist/internal/selection/selection-bar.js +15 -38
  199. package/dist/internal/stores/active-space-store.d.ts +1 -1
  200. package/dist/internal/stores/browser-recents-store.d.ts +1 -1
  201. package/dist/internal/stores/composer-prefill-store.d.ts +7 -0
  202. package/dist/internal/stores/composer-prefill-store.js +1 -0
  203. package/dist/internal/stores/current-account-store.d.ts +1 -1
  204. package/dist/internal/stores/first-chat-store.d.ts +1 -1
  205. package/dist/internal/stores/mobile-app-promo-store.d.ts +1 -1
  206. package/dist/internal/stores/session-browser-store.d.ts +1 -1
  207. package/dist/internal/stores/session-expanded-store.d.ts +1 -1
  208. package/dist/internal/stores/session-filter-store.d.ts +1 -1
  209. package/dist/internal/stores/session-history-view-store.d.ts +1 -1
  210. package/dist/internal/stores/session-panel-memory-store.d.ts +1 -1
  211. package/dist/internal/stores/sound-store.d.ts +1 -1
  212. package/dist/internal/stores/tab-store.d.ts +1 -1
  213. package/dist/internal/stores/user-preferences-store.d.ts +9 -1
  214. package/dist/internal/stores/user-preferences-store.js +2 -0
  215. package/dist/internal/stores/web-notification-store.d.ts +1 -1
  216. package/dist/lib/base-ui-compat.js +28 -1
  217. package/dist/lib/dotmatrix-hooks.d.ts +1 -0
  218. package/dist/lib/dotmatrix-hooks.js +3 -13
  219. package/dist/lib/reduced-motion.d.ts +10 -0
  220. package/dist/lib/reduced-motion.js +104 -0
  221. package/dist/lib/routes.d.ts +9 -0
  222. package/dist/lib/routes.js +7 -4
  223. package/dist/markdown/artifact-link.d.ts +11 -0
  224. package/dist/markdown/artifact-link.js +62 -0
  225. package/dist/markdown/code/index.d.ts +1 -1
  226. package/dist/markdown/code/index.js +1 -1
  227. package/dist/markdown/code/inline-code.d.ts +1 -1
  228. package/dist/markdown/code/inline-code.js +1 -1
  229. package/dist/markdown/genui/components/map-canvas.js +2 -1
  230. package/dist/markdown/index.d.ts +3 -1
  231. package/dist/markdown/index.js +2 -1
  232. package/dist/markdown/{code/inline-chip.js → inline-chip.js} +2 -2
  233. package/dist/markdown/inline-code-text.d.ts +34 -0
  234. package/dist/markdown/inline-code-text.js +68 -0
  235. package/dist/markdown/setup-links/approval-decision.js +3 -3
  236. package/dist/markdown/soft-breaks.d.ts +21 -0
  237. package/dist/markdown/soft-breaks.js +33 -0
  238. package/dist/markdown/unified-markdown.d.ts +9 -1
  239. package/dist/markdown/unified-markdown.js +31 -9
  240. package/dist/primitives/action-bar.d.ts +50 -0
  241. package/dist/primitives/action-bar.js +87 -0
  242. package/dist/primitives/calendar.js +4 -2
  243. package/dist/primitives/inline-meta.js +2 -2
  244. package/dist/primitives/kortix-loader.js +2 -1
  245. package/dist/primitives/modal.d.ts +1 -1
  246. package/dist/primitives/paper-wallpaper-shaders.d.ts +1 -0
  247. package/dist/primitives/paper-wallpaper-shaders.js +6 -0
  248. package/dist/primitives/resizable.d.ts +1 -1
  249. package/dist/primitives/resize-seam.d.ts +3 -2
  250. package/dist/primitives/resize-seam.js +4 -3
  251. package/dist/primitives/settings-section-header.d.ts +30 -1
  252. package/dist/primitives/settings-section-header.js +37 -0
  253. package/dist/primitives/sliding-tab-indicator.js +2 -1
  254. package/dist/primitives/switch.js +15 -8
  255. package/dist/primitives/text-shimmer.js +6 -0
  256. package/dist/primitives/toast-clearance.d.ts +52 -0
  257. package/dist/primitives/toast-clearance.js +116 -0
  258. package/dist/primitives/toast.d.ts +3 -1
  259. package/dist/primitives/toast.js +2 -0
  260. package/dist/primitives/typed-title.js +1 -1
  261. package/dist/primitives/wallpaper-shaders.js +1 -1
  262. package/dist/session/actions/project-session-list-helpers.d.ts +16 -0
  263. package/dist/session/actions/project-session-list-helpers.js +18 -0
  264. package/dist/session/actions/session-label.js +2 -2
  265. package/dist/session/agents/agent-model.d.ts +1 -0
  266. package/dist/session/agents/agent-model.js +2 -1
  267. package/dist/session/agents/agent-strip.d.ts +10 -5
  268. package/dist/session/agents/agent-strip.js +49 -15
  269. package/dist/session/agents/held-messages.d.ts +6 -2
  270. package/dist/session/agents/held-messages.js +6 -3
  271. package/dist/session/agents/workflow-run-controls.d.ts +27 -4
  272. package/dist/session/agents/workflow-run-controls.js +63 -10
  273. package/dist/session/composer/ComposerCard.js +7 -1
  274. package/dist/session/composer/agent-selector.d.ts +2 -0
  275. package/dist/session/composer/agent-selector.js +11 -4
  276. package/dist/session/composer/animated-placeholder.js +2 -1
  277. package/dist/session/composer/attachment-tile.d.ts +2 -2
  278. package/dist/session/composer/attachment-tile.js +25 -3
  279. package/dist/session/composer/composer-agent-access.d.ts +10 -1
  280. package/dist/session/composer/composer-agent-access.js +18 -4
  281. package/dist/session/composer/composer-chat-input.d.ts +1 -0
  282. package/dist/session/composer/composer-chat-input.js +7 -2
  283. package/dist/session/composer/composer-logic.d.ts +7 -0
  284. package/dist/session/composer/composer-logic.js +18 -0
  285. package/dist/session/composer/composer-reset.d.ts +8 -14
  286. package/dist/session/composer/composer-toolbar.d.ts +3 -1
  287. package/dist/session/composer/composer-toolbar.js +3 -3
  288. package/dist/session/composer/composer.d.ts +9 -2
  289. package/dist/session/composer/composer.js +24 -9
  290. package/dist/session/composer/editor/composer-editor.js +6 -4
  291. package/dist/session/composer/hooks/use-file-search.d.ts +12 -2
  292. package/dist/session/composer/hooks/use-file-search.js +71 -7
  293. package/dist/session/composer/menus/menu-items.js +6 -2
  294. package/dist/session/composer/menus/menu-shell.d.ts +3 -1
  295. package/dist/session/composer/menus/menu-shell.js +2 -2
  296. package/dist/session/composer/menus/slash-menu.d.ts +7 -0
  297. package/dist/session/composer/menus/slash-menu.js +48 -1
  298. package/dist/session/composer/use-instant-session-send.js +7 -1
  299. package/dist/session/header/session-reminders-indicator.js +3 -2
  300. package/dist/session/header/session-site-header.d.ts +3 -1
  301. package/dist/session/header/session-site-header.js +27 -8
  302. package/dist/session/media/sandbox-url-detector.js +1 -1
  303. package/dist/session/models/connect-model-step.d.ts +29 -0
  304. package/dist/session/models/connect-model-step.js +50 -0
  305. package/dist/session/models/model-connection-gate.js +2 -1
  306. package/dist/session/models/model-selector.js +1 -1
  307. package/dist/session/models/subscription-switcher.d.ts +7 -0
  308. package/dist/session/models/subscription-switcher.js +52 -10
  309. package/dist/session/models/subscription-windows.d.ts +2 -0
  310. package/dist/session/models/subscription-windows.js +2 -0
  311. package/dist/session/models/use-workspace-model-gate.d.ts +11 -0
  312. package/dist/session/models/use-workspace-model-gate.js +62 -0
  313. package/dist/session/models/workspace-model-gate.d.ts +46 -0
  314. package/dist/session/models/workspace-model-gate.js +66 -0
  315. package/dist/session/outcomes/session-outcomes-provider.js +14 -7
  316. package/dist/session/panel/action-panel.js +8 -19
  317. package/dist/session/panel/easy/app-preview.d.ts +4 -1
  318. package/dist/session/panel/easy/app-preview.js +95 -33
  319. package/dist/session/panel/easy/apps-card.js +6 -11
  320. package/dist/session/panel/easy/change-requests-card.js +1 -1
  321. package/dist/session/panel/easy/changes-card.d.ts +14 -0
  322. package/dist/session/panel/easy/changes-card.js +60 -0
  323. package/dist/session/panel/easy/context-card.d.ts +5 -1
  324. package/dist/session/panel/easy/context-card.js +13 -28
  325. package/dist/session/panel/easy/context-meter.d.ts +18 -0
  326. package/dist/session/panel/easy/context-meter.js +73 -0
  327. package/dist/session/panel/easy/detail-view.d.ts +1 -1
  328. package/dist/session/panel/easy/detail-view.js +24 -21
  329. package/dist/session/panel/easy/easy-panel.js +7 -5
  330. package/dist/session/panel/easy/file-preview.js +3 -1
  331. package/dist/session/panel/easy/frame-history.d.ts +91 -0
  332. package/dist/session/panel/easy/frame-history.js +198 -0
  333. package/dist/session/panel/easy/outputs-card.d.ts +10 -0
  334. package/dist/session/panel/easy/outputs-card.js +28 -31
  335. package/dist/session/panel/easy/panel-card.d.ts +1 -3
  336. package/dist/session/panel/easy/panel-card.js +24 -8
  337. package/dist/session/panel/easy/plan-card.js +2 -2
  338. package/dist/session/panel/easy/step-icon.d.ts +4 -1
  339. package/dist/session/panel/easy/step-icon.js +2 -2
  340. package/dist/session/panel/session-action-panel-column.d.ts +5 -0
  341. package/dist/session/panel/session-action-panel-column.js +198 -101
  342. package/dist/session/panel/session-desktop.js +5 -1
  343. package/dist/session/panel/session-diff-viewer.d.ts +3 -1
  344. package/dist/session/panel/session-diff-viewer.js +7 -4
  345. package/dist/session/panel/session-panel-provider.js +29 -5
  346. package/dist/session/panel/shared/derive-panels.js +64 -4
  347. package/dist/session/prompts/session-connect-card.d.ts +63 -0
  348. package/dist/session/prompts/{session-connect-prompt.js → session-connect-card.js} +53 -42
  349. package/dist/session/status/session-busy-indicator.js +2 -1
  350. package/dist/session/status/session-error-banner.js +1 -1
  351. package/dist/session/thread/chat-minimap.js +2 -1
  352. package/dist/session/thread/session-body.js +4 -1
  353. package/dist/session/thread/session-chat.js +311 -300
  354. package/dist/session/thread/session-turn-meta-rows.d.ts +13 -5
  355. package/dist/session/thread/session-turn-meta-rows.js +33 -5
  356. package/dist/session/thread/transcript.d.ts +3 -3
  357. package/dist/session/thread/transcript.js +33 -27
  358. package/dist/session/thread/typing-indicator.d.ts +2 -2
  359. package/dist/session/thread/typing-indicator.js +10 -3
  360. package/dist/session/tool/tool-part-renderer.js +7 -2
  361. package/dist/session/tool/tools/kortix-action-tool.js +10 -2
  362. package/dist/session/tool/tools/session-spawn-tool.js +3 -3
  363. package/dist/session/tool/tools/workflow-run-card.d.ts +11 -1
  364. package/dist/session/tool/tools/workflow-run-card.js +31 -7
  365. package/dist/session/tool/tools/workflow-run-cost.d.ts +29 -0
  366. package/dist/session/tool/tools/workflow-run-cost.js +75 -0
  367. package/dist/session/tool/tools/workflow-tool.d.ts +1 -1
  368. package/dist/session/tool/tools/workflow-tool.js +40 -15
  369. package/dist/session/turn/peer-message-row.js +1 -1
  370. package/dist/session/turn/queued-prompt-bubbles.d.ts +3 -2
  371. package/dist/session/turn/queued-prompt-bubbles.js +1 -1
  372. package/dist/session/turn/throttled-markdown.js +1 -1
  373. package/dist/session/turn/turn-viewport.d.ts +66 -10
  374. package/dist/session/turn/turn-viewport.js +92 -12
  375. package/dist/session/turn/user-message.js +7 -5
  376. package/dist/styles/theme.css +68 -0
  377. package/dist/styles.css +1 -1
  378. package/dist/terminal/pty-terminal.js +1 -1
  379. package/dist/terminal/session-terminal-connect-bar.js +2 -1
  380. package/dist/test-utils/intl.d.ts +544 -46
  381. package/dist/workspace/admin/project-admin-dashboard.js +23 -11
  382. package/dist/workspace/admin/settings-search-landing.js +2 -1
  383. package/dist/workspace/calendar/calendar-dates.d.ts +31 -0
  384. package/dist/workspace/calendar/calendar-dates.js +64 -0
  385. package/dist/workspace/calendar/calendar-new-item.d.ts +11 -0
  386. package/dist/workspace/calendar/calendar-new-item.js +47 -0
  387. package/dist/workspace/calendar/calendar-page.d.ts +3 -0
  388. package/dist/workspace/calendar/calendar-page.js +177 -0
  389. package/dist/workspace/calendar/calendar-panel.d.ts +13 -0
  390. package/dist/workspace/calendar/calendar-panel.js +103 -0
  391. package/dist/workspace/calendar/calendar-people.d.ts +52 -0
  392. package/dist/workspace/calendar/calendar-people.js +117 -0
  393. package/dist/workspace/calendar/calendar-scheduled.d.ts +29 -0
  394. package/dist/workspace/calendar/calendar-scheduled.js +118 -0
  395. package/dist/workspace/calendar/calendar-views.d.ts +32 -0
  396. package/dist/workspace/calendar/calendar-views.js +124 -0
  397. package/dist/workspace/calendar/calendar-when.d.ts +14 -0
  398. package/dist/workspace/calendar/calendar-when.js +81 -0
  399. package/dist/workspace/calendar/mention-textarea.d.ts +19 -0
  400. package/dist/workspace/calendar/mention-textarea.js +84 -0
  401. package/dist/workspace/home/access-requests-bell.js +2 -1
  402. package/dist/workspace/home/existing-repo-setup-prompt.d.ts +5 -8
  403. package/dist/workspace/home/existing-repo-setup-prompt.js +16 -42
  404. package/dist/workspace/home/no-agent-home.d.ts +3 -1
  405. package/dist/workspace/home/no-agent-home.js +2 -2
  406. package/dist/workspace/inbox/workspace-inbox.d.ts +1 -1
  407. package/dist/workspace/inbox/workspace-inbox.js +1 -1
  408. package/dist/workspace/layout/project-files-view.js +2 -1
  409. package/dist/workspace/layout/project-home.js +16 -9
  410. package/dist/workspace/memory/memory-page-list.js +1 -1
  411. package/dist/workspace/new/workspace-handoff.js +2 -1
  412. package/dist/workspace/projects/modal/project-icon-field.js +2 -1
  413. package/dist/workspace/session-workspace.js +13 -12
  414. package/dist/workspace/setup/setup-steps.d.ts +43 -0
  415. package/dist/workspace/setup/setup-steps.js +38 -0
  416. package/dist/workspace/setup/workspace-setup-page.d.ts +10 -0
  417. package/dist/workspace/setup/workspace-setup-page.js +124 -0
  418. package/dist/workspace/sidebar/footer/project-artifacts-nav.js +5 -1
  419. package/dist/workspace/sidebar/footer/project-calendar-nav.d.ts +8 -0
  420. package/dist/workspace/sidebar/footer/project-calendar-nav.js +31 -0
  421. package/dist/workspace/sidebar/footer/project-chrome-nav.d.ts +14 -6
  422. package/dist/workspace/sidebar/footer/project-chrome-nav.js +37 -25
  423. package/dist/workspace/sidebar/footer/project-computer-nav.d.ts +17 -9
  424. package/dist/workspace/sidebar/footer/project-computer-nav.js +36 -26
  425. package/dist/workspace/sidebar/footer/project-download-app-nav.d.ts +7 -7
  426. package/dist/workspace/sidebar/footer/project-download-app-nav.js +25 -13
  427. package/dist/workspace/sidebar/footer/project-inbox-nav.d.ts +8 -0
  428. package/dist/workspace/sidebar/footer/project-inbox-nav.js +29 -0
  429. package/dist/workspace/sidebar/footer/project-manifest-issues-alert.d.ts +3 -13
  430. package/dist/workspace/sidebar/footer/project-manifest-issues-alert.js +6 -48
  431. package/dist/workspace/sidebar/footer/project-mcp-nav.d.ts +7 -7
  432. package/dist/workspace/sidebar/footer/project-mcp-nav.js +31 -13
  433. package/dist/workspace/sidebar/footer/project-phone-app-nav.d.ts +10 -0
  434. package/dist/workspace/sidebar/footer/project-phone-app-nav.js +61 -0
  435. package/dist/workspace/sidebar/footer/project-promo-cards.d.ts +21 -0
  436. package/dist/workspace/sidebar/footer/project-promo-cards.js +33 -0
  437. package/dist/workspace/sidebar/footer/promo-card.d.ts +41 -0
  438. package/dist/workspace/sidebar/footer/promo-card.js +47 -0
  439. package/dist/workspace/sidebar/project-nav-items.d.ts +3 -1
  440. package/dist/workspace/sidebar/project-nav-items.js +12 -4
  441. package/dist/workspace/sidebar/project-session-list.js +58 -26
  442. package/dist/workspace/sidebar/project-sidebar.js +2 -5
  443. package/dist/workspace/sidebar/project-spaces-nav.js +2 -1
  444. package/dist/workspace/sidebar/session-brief-hover-card.d.ts +24 -0
  445. package/dist/workspace/sidebar/session-brief-hover-card.js +4 -3
  446. package/dist/workspace/sidebar/session-group-sections.d.ts +26 -7
  447. package/dist/workspace/sidebar/session-group-sections.js +121 -41
  448. package/dist/workspace/sidebar/session-grouping.d.ts +1 -1
  449. package/dist/workspace/sidebar/session-grouping.js +1 -1
  450. package/dist/workspace/sidebar/sidebar-drill.js +6 -0
  451. package/dist/workspace/sidebar/sidebar-more-group.js +3 -2
  452. package/dist/workspace/sidebar/use-workspace-list.d.ts +7 -0
  453. package/dist/workspace/sidebar/use-workspace-list.js +11 -1
  454. package/dist/workspace/sidebar/workspace-settings-sidebar-nav.d.ts +14 -0
  455. package/dist/workspace/sidebar/workspace-settings-sidebar-nav.js +46 -2
  456. package/dist/workspace/space/space-tab-panels.js +1 -1
  457. package/dist/workspace/spaces/space-details-panel.js +2 -2
  458. package/dist/workspace/spaces/space-timeline.js +2 -2
  459. package/dist/workspace/spaces/space-triggers.js +2 -2
  460. package/dist/workspace/spaces/space-view.js +11 -5
  461. package/package.json +79 -10
  462. package/skills/kortix-ui/SKILL.md +2 -2
  463. package/skills/kortix-ui/references/modules.md +5 -3
  464. package/dist/session/prompts/session-connect-prompt.d.ts +0 -40
  465. package/dist/session/thread/turn-share.d.ts +0 -16
  466. package/dist/session/thread/turn-share.js +0 -161
  467. package/dist/workspace/sidebar/footer/promo-nav-row.d.ts +0 -11
  468. package/dist/workspace/sidebar/footer/promo-nav-row.js +0 -7
  469. /package/dist/markdown/{code/inline-chip.d.ts → inline-chip.d.ts} +0 -0
@@ -1,5 +1,6 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import { useSaveShortcut } from '../../internal/hooks/use-save-shortcut.js';
3
4
  import { MY_KORTIX_AGENT_NAME } from '../../_vendor/kortix-shared.js';
4
5
  import { adminPath } from '../../lib/routes.js';
5
6
  /**
@@ -49,7 +50,7 @@ import { contract, qk, useFeatureFlag, useProjectAccountId, useUnifiedTriggers }
49
50
  import { DotsThreeIcon, LockSimpleIcon, PlayIcon, StarIcon, TrashIcon } from '@phosphor-icons/react';
50
51
  import { Badge } from '../../primitives/badge.js';
51
52
  import { useQueries, useQuery } from '@tanstack/react-query';
52
- import { useCallback, useEffect, useMemo, useState } from 'react';
53
+ import { useCallback, useMemo, useState } from 'react';
53
54
  import { useLocale, useTranslations as useI18nTranslations } from '../../i18n/index.js';
54
55
  import { AgentMark, agentDisplayName } from '../../internal/components/agent-mark.js';
55
56
  import { useAgentConfig, useUpdateAgentConfig } from '../../internal/hooks/projects/use-agent-config.js';
@@ -133,7 +134,7 @@ export function AgentPage({ projectId, agentName, renderApps, }) {
133
134
  // A writer whose agent-config read failed would otherwise land on the
134
135
  // read-only page with no word on why: say what failed, offer the retry.
135
136
  if (canWrite && configQuery.isError) {
136
- return (_jsx(AgentStatePage, { title: agentDisplayName(agent.name), children: _jsx(ErrorState, { size: "sm", title: t('configLoadError', { name: agentDisplayName(agent.name) }), description: _jsx(ErrorDetails, { error: configQuery.error }), action: _jsx(Button, { variant: "outline", size: "sm", onClick: () => void configQuery.refetch(), children: tI18nComplete.raw('text942087cc2d41') }) }) }));
137
+ return (_jsx(AgentStatePage, { title: agentDisplayName(agent.name, agent.title), children: _jsx(ErrorState, { size: "sm", title: t('configLoadError', { name: agentDisplayName(agent.name, agent.title) }), description: _jsx(ErrorDetails, { error: configQuery.error }), action: _jsx(Button, { variant: "outline", size: "sm", onClick: () => void configQuery.refetch(), children: tI18nComplete.raw('text942087cc2d41') }) }) }));
137
138
  }
138
139
  const editable = canWrite && configQuery.data?.editable === true;
139
140
  return editable ? (_jsx(EditableAgentPage, { projectId: projectId, agent: agent, config: config, initial: configQuery.data?.block ?? {}, renderApps: renderApps })) : (_jsx(ReadOnlyAgentPage, { projectId: projectId, agent: agent, config: config, block: configQuery.data?.block ?? blockFromScope(agent), canWrite: canWrite }));
@@ -248,29 +249,6 @@ function useShareDialog(openedByLink) {
248
249
  }, [openedByLink, router, pathname]);
249
250
  return { open, setOpen };
250
251
  }
251
- /**
252
- * Mod+S saves the agent, only while the draft holds an edit. With nothing to
253
- * save the key keeps the browser's own behavior. A key pressed inside an open
254
- * dialog (an embedded screen's own editor, the secret form) belongs to that
255
- * dialog, never to the agent's draft.
256
- */
257
- function useSaveShortcut(dirty, onSave) {
258
- useEffect(() => {
259
- if (!dirty)
260
- return;
261
- const handler = (event) => {
262
- if (!(event.metaKey || event.ctrlKey) || event.shiftKey || event.altKey || event.key !== 's')
263
- return;
264
- const target = event.target instanceof Element ? event.target : null;
265
- if (target?.closest('[role="dialog"], [role="alertdialog"]'))
266
- return;
267
- event.preventDefault();
268
- onSave();
269
- };
270
- window.addEventListener('keydown', handler);
271
- return () => window.removeEventListener('keydown', handler);
272
- }, [dirty, onSave]);
273
- }
274
252
  /**
275
253
  * The rail's rows. Overview, Basics, People and Triggers are General; every
276
254
  * grant is Access; Model, Tools and Workspace are Runtime. Each row carries
@@ -278,13 +256,18 @@ function useSaveShortcut(dirty, onSave) {
278
256
  * can be sent to. People opens the Share dialog, and only for a caller who
279
257
  * may manage members (`onPeople`).
280
258
  */
281
- function useRailGroups(pathname, views, counts, onPeople) {
259
+ function useRailGroups(pathname, views, counts, onPeople,
260
+ /** A program agent (`run`): its Model row is its Program. */
261
+ program = false) {
282
262
  const t = useI18nTranslations('agentEditor.tabs');
263
+ const tModel = useI18nTranslations('agentEditor.modelView');
283
264
  const tI18nComplete = useI18nTranslations('hardcodedUi.i18nComplete');
284
265
  const catalog = useLocalizedAgentConfigCatalog();
285
- const labelOf = (key) => key === 'subagents'
286
- ? tI18nComplete.raw('agentsListSubagentsTitle')
287
- : (catalog.sections.find((s) => s.key === key)?.label ?? key);
266
+ const labelOf = (key) => key === 'model' && program
267
+ ? tModel('programTitle')
268
+ : key === 'subagents'
269
+ ? tI18nComplete.raw('agentsListSubagentsTitle')
270
+ : (catalog.sections.find((s) => s.key === key)?.label ?? key);
288
271
  const viewRows = (keys) => keys
289
272
  .filter((key) => views.includes(key))
290
273
  .map((key) => ({ key, label: labelOf(key), href: sectionLocationHref(pathname, key) }));
@@ -352,7 +335,7 @@ function AgentActions({ projectId, agent, config, canWrite, share, }) {
352
335
  : null;
353
336
  const startLabel = tI18nComplete.raw('textb1c52ee3677d');
354
337
  const start = (_jsxs(_Fragment, { children: [_jsxs(Button, { size: "sm", disabled: startBlocked !== null, onClick: () => startSession({ create: { agent_name: agent.name } }), className: "hidden sm:inline-flex", children: [_jsx(PlayIcon, { weight: "fill", className: "size-3.5 shrink-0" }), startLabel] }), _jsx(Button, { size: "icon-base", "aria-label": startLabel, disabled: startBlocked !== null, onClick: () => startSession({ create: { agent_name: agent.name } }), className: "sm:hidden", children: _jsx(PlayIcon, { weight: "fill", className: "size-3.5" }) })] }));
355
- return (_jsxs(_Fragment, { children: [_jsx(AgentShareControl, { projectId: projectId, agentName: agent.name, open: share.open, onOpenChange: share.setOpen }), startBlocked ? null : _jsx(AgentCallButton, { projectId: projectId, agentName: agent.name }), startBlocked ? (_jsx(Hint, { label: startBlocked, children: _jsx("span", { className: "inline-flex", children: start }) })) : (start), canWrite ? (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx(Button, { variant: "ghost", size: "icon-base", "aria-label": tI18nComplete.raw('textf8d46c2570e7'), children: _jsx(DotsThreeIcon, { className: "size-4" }) }) }), _jsxs(DropdownMenuContent, { align: "end", children: [_jsxs(DropdownMenuItem, { disabled: isDefault || agent.enabled === false || makeDefault.isPending, onSelect: () => makeDefault.mutate(agent.name), children: [_jsx(StarIcon, { className: "size-4" }), isDefault ? tI18nComplete.raw('texte8cb80e5c5cb') : tI18nComplete.raw('texte8f43f910a4e')] }), _jsxs(DropdownMenuItem, { disabled: configure.pending, onSelect: () => setConfirm('edit'), children: [_jsx(AgentMark, { slug: MY_KORTIX_AGENT_NAME }), t('askToEditAgent')] }), _jsx(DropdownMenuSeparator, {}), _jsxs(DropdownMenuItem, { variant: "destructive", disabled: configure.pending, onSelect: () => setConfirm('delete'), children: [_jsx(TrashIcon, { className: "size-4" }), t('deleteAgent', { name: agentDisplayName(agent.name) })] })] })] })) : null, _jsx(ConfirmDialog, { open: confirm !== null, onOpenChange: (open) => (open ? undefined : setConfirm(null)), title: confirm === 'delete' ? t('deleteTitle', { name: agentDisplayName(agent.name) }) : tI18nComplete.raw('text24ba36a8ec86'), description: confirm === 'delete'
338
+ return (_jsxs(_Fragment, { children: [_jsx(AgentShareControl, { projectId: projectId, agentName: agent.name, open: share.open, onOpenChange: share.setOpen }), startBlocked ? null : _jsx(AgentCallButton, { projectId: projectId, agentName: agent.name }), startBlocked ? (_jsx(Hint, { label: startBlocked, children: _jsx("span", { className: "inline-flex", children: start }) })) : (start), canWrite ? (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx(Button, { variant: "ghost", size: "icon-base", "aria-label": tI18nComplete.raw('textf8d46c2570e7'), children: _jsx(DotsThreeIcon, { className: "size-4" }) }) }), _jsxs(DropdownMenuContent, { align: "end", children: [_jsxs(DropdownMenuItem, { disabled: isDefault || agent.enabled === false || makeDefault.isPending, onSelect: () => makeDefault.mutate(agent.name), children: [_jsx(StarIcon, { className: "size-4" }), isDefault ? tI18nComplete.raw('texte8cb80e5c5cb') : tI18nComplete.raw('texte8f43f910a4e')] }), _jsxs(DropdownMenuItem, { disabled: configure.pending, onSelect: () => setConfirm('edit'), children: [_jsx(AgentMark, { slug: MY_KORTIX_AGENT_NAME }), t('askToEditAgent')] }), _jsx(DropdownMenuSeparator, {}), _jsxs(DropdownMenuItem, { variant: "destructive", disabled: configure.pending, onSelect: () => setConfirm('delete'), children: [_jsx(TrashIcon, { className: "size-4" }), t('deleteAgent', { name: agentDisplayName(agent.name, agent.title) })] })] })] })) : null, _jsx(ConfirmDialog, { open: confirm !== null, onOpenChange: (open) => (open ? undefined : setConfirm(null)), title: confirm === 'delete' ? t('deleteTitle', { name: agentDisplayName(agent.name, agent.title) }) : tI18nComplete.raw('text24ba36a8ec86'), description: confirm === 'delete'
356
339
  ? t('deleteBody')
357
340
  : tI18nComplete('text13324ae62b23', { value0: agent.name }), confirmLabel: tI18nComplete.raw('text0bce1a892dec'), cancelLabel: tI18nComplete.raw('text19766ed6ccb2'), confirmVariant: confirm === 'delete' ? 'destructive' : 'default', onConfirm: () => {
358
341
  const kind = confirm;
@@ -397,6 +380,7 @@ function EditableAgentPage({ projectId, agent, config, initial, renderApps, }) {
397
380
  const [confirmDiscard, setConfirmDiscard] = useState(false);
398
381
  const pathname = useUiPathname();
399
382
  const drivesOn = useFeatureFlag(projectId, 'drives').enabled;
383
+ const programAgentsOn = useFeatureFlag(projectId, 'program_agents').enabled;
400
384
  const views = useMemo(() => AGENT_CONFIG_SECTIONS.map((s) => s.key).filter((k) => drivesOn || k !== 'drives'), [drivesOn]);
401
385
  const location = useAgentLocation(AGENT_TABS, views);
402
386
  const share = useShareDialog(location.open === 'share');
@@ -410,7 +394,7 @@ function EditableAgentPage({ projectId, agent, config, initial, renderApps, }) {
410
394
  const policySetControl = useAgentPolicySetControls(projectId, editor, policySetOptions);
411
395
  const surface = { kind: 'agent', agentName: agent.name };
412
396
  const defaultAgent = config.default_agent;
413
- const name = agentDisplayName(agent.name);
397
+ const name = agentDisplayName(agent.name, agent.title);
414
398
  const sourcePath = editor.draft.file ?? configEntitySourcePath(agent.path);
415
399
  const { draft, set } = editor;
416
400
  const connectorsGrant = useAgentGrant(draft.connectors, (v) => {
@@ -444,7 +428,7 @@ function EditableAgentPage({ projectId, agent, config, initial, renderApps, }) {
444
428
  const leaveGuard = useUnsavedChangesGuard(editor.isDirty, pathname);
445
429
  useSaveShortcut(editor.isDirty, saveNow);
446
430
  const canManageMembers = useCanManageMembers(projectId);
447
- const railGroups = useRailGroups(pathname, views, facts, canManageMembers ? () => share.setOpen(true) : undefined);
431
+ const railGroups = useRailGroups(pathname, views, facts, canManageMembers ? () => share.setOpen(true) : undefined, programAgentsOn && typeof editor.draft.run === 'string');
448
432
  const railItems = railGroups.flatMap((group) => group.items);
449
433
  const dirtyItems = useMemo(() => changedItems(editor.draft, editor.baseline), [editor.draft, editor.baseline]);
450
434
  const changed = new Intl.ListFormat(locale, { type: 'conjunction' }).format(dirtyItems.map((key) => railItems.find((item) => item.key === key)?.label ?? key));
@@ -478,7 +462,14 @@ function EditableAgentPage({ projectId, agent, config, initial, renderApps, }) {
478
462
  // Model is this agent's model only. The project-wide gateway screens
479
463
  // (providers, routing, costs, logs) live once, in Project admin.
480
464
  if (view === 'model')
481
- return (_jsx(AgentTabBody, { children: _jsx(AgentModelView, { oc: editor.oc, setOc: editor.setOc, footer: _jsx(ProjectModelsLink, { projectId: projectId }) }) }));
465
+ return (_jsx(AgentTabBody, { children: _jsx(AgentModelView, { oc: editor.oc, setOc: editor.setOc, footer: _jsx(ProjectModelsLink, { projectId: projectId }), program: programAgentsOn && typeof editor.draft.run === 'string'
466
+ ? {
467
+ command: editor.draft.run,
468
+ onChange: (next) => editor.set('run', next),
469
+ timeout: editor.draft.timeout,
470
+ onTimeoutChange: (next) => editor.set('timeout', next),
471
+ }
472
+ : undefined }) }));
482
473
  return (_jsx(AgentTabBody, { className: `${view === 'workspace' ? CENTER_COLUMN : RAIL_COLUMN} space-y-5`, children: _jsx(CapabilityShellEmbedProvider, { value: { agentName: agent.name }, children: editorSection(view) }) }));
483
474
  }
484
475
  case 'triggers':
@@ -523,7 +514,7 @@ function ReadOnlyAgentPage({ projectId, agent, config, block, canWrite, }) {
523
514
  const spacesOn = useSpacesEnabled(projectId);
524
515
  const canManageMembers = useCanManageMembers(projectId);
525
516
  const railGroups = useRailGroups(pathname, READ_ONLY_VIEWS, facts, canManageMembers ? () => share.setOpen(true) : undefined);
526
- const name = agentDisplayName(agent.name);
517
+ const name = agentDisplayName(agent.name, agent.title);
527
518
  // A reader has a page for Kortix permissions and Model only. Every other
528
519
  // Access row shows its grant by name on the Overview and links nowhere.
529
520
  const banner = (_jsxs(BannerAlert, { variant: "default", children: [_jsx(BannerAlertMedia, { children: _jsx(LockSimpleIcon, {}) }), _jsx(BannerAlertTitle, { children: t('readOnlyTitle') }), _jsx(BannerAlertDescription, { children: t.rich('readOnlyBody', { code: (chunks) => _jsx("span", { className: "font-mono", children: chunks }) }) })] }));
@@ -51,6 +51,7 @@ export declare function agentLocationHref(pathname: string, tab: AgentTab, view?
51
51
  /** The href of a legacy section key: where an old Overview row or link lands now. */
52
52
  export declare function sectionLocationHref(pathname: string, section: AgentConfigSectionKey): string;
53
53
  export declare const YAML_KEY_ROW: {
54
+ readonly title: "overview";
54
55
  readonly description: "overview";
55
56
  readonly prompt: "overview";
56
57
  readonly prompt_file: "overview";
@@ -65,6 +66,8 @@ export declare const YAML_KEY_ROW: {
65
66
  readonly top_p: "model";
66
67
  readonly steps: "model";
67
68
  readonly options: "model";
69
+ readonly run: "model";
70
+ readonly timeout: "model";
68
71
  readonly tools: "tools";
69
72
  readonly codemode: "tools";
70
73
  readonly context: "tools";
@@ -103,6 +103,7 @@ export function sectionLocationHref(pathname, section) {
103
103
  */
104
104
  const OVERVIEW_ROW = 'overview';
105
105
  export const YAML_KEY_ROW = {
106
+ title: OVERVIEW_ROW,
106
107
  description: OVERVIEW_ROW,
107
108
  prompt: OVERVIEW_ROW,
108
109
  prompt_file: 'overview',
@@ -117,6 +118,8 @@ export const YAML_KEY_ROW = {
117
118
  top_p: 'model',
118
119
  steps: 'model',
119
120
  options: 'model',
121
+ run: 'model',
122
+ timeout: 'model',
120
123
  tools: 'tools',
121
124
  codemode: 'tools',
122
125
  context: 'tools',
@@ -124,7 +124,7 @@ export function AgentsPage({ projectId }) {
124
124
  .filter((agent) => !agent.platform)
125
125
  .sort((a, b) => Number(agentInMode(b, 'primary')) - Number(agentInMode(a, 'primary')) ||
126
126
  Number(b.name === defaultAgent) - Number(a.name === defaultAgent) ||
127
- agentDisplayName(a.name).localeCompare(agentDisplayName(b.name))), [filtered, defaultAgent]);
127
+ agentDisplayName(a.name, a.title).localeCompare(agentDisplayName(b.name, b.title))), [filtered, defaultAgent]);
128
128
  // Spaces are Work in progress: with `chat` off, no space filter and no Space column.
129
129
  const spacesOn = useSpacesEnabled(projectId);
130
130
  const groups = useMemo(() => (spacesOn ? groupBySpace(work, config?.spaces) : []), [spacesOn, work, config?.spaces]);
@@ -136,7 +136,7 @@ export function AgentsPage({ projectId }) {
136
136
  // sit in their own section. `all` is usable both ways and stays with the first.
137
137
  const primaryAgents = shown.filter((agent) => agentInMode(agent, 'primary'));
138
138
  const subagents = shown.filter((agent) => !agentInMode(agent, 'primary'));
139
- const card = (agent, cover) => (_jsx(AgentCoverCard, { slug: agent.name, href: agentHref(projectId, agent.name), onIntent: () => prefetchAgentConfig(queryClient, projectId, agent.name), title: agentDisplayName(agent.name), description: agent.description, badges: _jsx(AgentCardBadges, { agent: agent }), coverLabel: cover, meta: _jsx(AgentCardFacts, { agent: agent, triggerCount: triggerCounts.get(agent.name) ?? 0, grantCount: grantCounts.get(agent.name) ?? 0 }) }, agent.name));
139
+ const card = (agent, cover) => (_jsx(AgentCoverCard, { slug: agent.name, href: agentHref(projectId, agent.name), onIntent: () => prefetchAgentConfig(queryClient, projectId, agent.name), title: agentDisplayName(agent.name, agent.title), description: agent.description, badges: _jsx(AgentCardBadges, { agent: agent }), coverLabel: cover, meta: _jsx(AgentCardFacts, { agent: agent, triggerCount: triggerCounts.get(agent.name) ?? 0, grantCount: grantCounts.get(agent.name) ?? 0 }) }, agent.name));
140
140
  const newButton = canWrite ? (_jsxs(Button, { size: "sm", onClick: () => setCreating(true), className: "gap-1.5", children: [_jsx(PlusIcon, { className: "size-4" }), t('newAgent')] })) : null;
141
141
  const body = (() => {
142
142
  if (detailQuery.isLoading)
@@ -208,5 +208,5 @@ function DefaultAgentSelector({ projectId, config, canWrite, }) {
208
208
  });
209
209
  if (availableAgents.length === 0 || !current)
210
210
  return null;
211
- return (_jsxs("div", { className: "flex shrink-0 items-center gap-2", children: [mutation.isPending ? _jsx(Loading, { className: "size-4 shrink-0" }) : null, _jsxs(Select, { value: current, onValueChange: (agentName) => mutation.mutate(agentName), disabled: !canWrite || mutation.isPending, children: [_jsx(SelectTrigger, { "aria-label": tI18nComplete.raw('text94da52ecd6c5'), className: "h-9 w-44 shrink-0", size: "sm", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { align: "end", children: availableAgents.map((agent) => (_jsx(SelectItem, { value: agent.name, children: _jsxs("span", { className: "flex min-w-0 items-center gap-2", children: [_jsx(AgentMark, { slug: agent.name }), _jsx("span", { className: "truncate", children: agentDisplayName(agent.name) })] }) }, agent.name))) })] })] }));
211
+ return (_jsxs("div", { className: "flex shrink-0 items-center gap-2", children: [mutation.isPending ? _jsx(Loading, { className: "size-4 shrink-0" }) : null, _jsxs(Select, { value: current, onValueChange: (agentName) => mutation.mutate(agentName), disabled: !canWrite || mutation.isPending, children: [_jsx(SelectTrigger, { "aria-label": tI18nComplete.raw('text94da52ecd6c5'), className: "h-9 w-44 shrink-0", size: "sm", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { align: "end", children: availableAgents.map((agent) => (_jsx(SelectItem, { value: agent.name, children: _jsxs("span", { className: "flex min-w-0 items-center gap-2", children: [_jsx(AgentMark, { slug: agent.name }), _jsx("span", { className: "truncate", children: agentDisplayName(agent.name, agent.title) })] }) }, agent.name))) })] })] }));
212
212
  }
@@ -1,10 +1,19 @@
1
1
  import type { ProjectConfigSummary } from '@kortix/sdk';
2
2
  import type * as React from 'react';
3
3
  export type CreateAgentStart = 'describe' | 'blank' | 'duplicate';
4
+ /**
5
+ * The `title:` a new agent is written with: the name as typed, trimmed, when
6
+ * the key's derived name would read differently ("GitHub PR Reviewer" →
7
+ * `github-pr-reviewer` → "Github pr reviewer"). null when the key already
8
+ * reads as typed, so a plain name adds no key to kortix.yaml.
9
+ */
10
+ export declare function createAgentTitle(typed: string, slug: string): string | null;
4
11
  /** The request My Kortix receives. English, like every configure prompt. */
5
12
  export declare function createAgentPrompt(input: {
6
13
  start: CreateAgentStart;
7
14
  name: string;
15
+ /** `agents.<name>.title`, from {@link createAgentTitle}. */
16
+ title?: string | null;
8
17
  description: string;
9
18
  from?: {
10
19
  name: string;
@@ -13,7 +13,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  * window, form only. Its body scrolls and its footer stays pinned, so Create
14
14
  * agent is reachable at 720×480.
15
15
  */
16
- import { slugifySlug } from '../../_vendor/kortix-shared.js';
16
+ import { AGENT_TITLE_MAX_LENGTH, slugifySlug } from '../../_vendor/kortix-shared.js';
17
17
  import { isMyKortixAgentName } from '../../_vendor/kortix-shared.js';
18
18
  import { useState } from 'react';
19
19
  import { useTranslations as useI18nTranslations } from '../../i18n/index.js';
@@ -30,9 +30,22 @@ import { Textarea } from '../../primitives/textarea.js';
30
30
  import { useConfigureThread } from '../use-configure-thread.js';
31
31
  /** A phone's footer clears the home indicator: the device inset, at least the footer's own py-3. */
32
32
  const FOOTER_SAFE_AREA = 'max-lg:pb-[max(0.75rem,env(safe-area-inset-bottom))]'; // audit:allow device safe-area inset, not a spacing step
33
+ /**
34
+ * The `title:` a new agent is written with: the name as typed, trimmed, when
35
+ * the key's derived name would read differently ("GitHub PR Reviewer" →
36
+ * `github-pr-reviewer` → "Github pr reviewer"). null when the key already
37
+ * reads as typed, so a plain name adds no key to kortix.yaml.
38
+ */
39
+ export function createAgentTitle(typed, slug) {
40
+ const title = typed.trim().slice(0, AGENT_TITLE_MAX_LENGTH).trim();
41
+ if (!title || !slug)
42
+ return null;
43
+ return title === agentDisplayName(slug) ? null : title;
44
+ }
33
45
  /** The request My Kortix receives. English, like every configure prompt. */
34
46
  export function createAgentPrompt(input) {
35
- const review = 'Then open a change request so I can review and merge it.';
47
+ const review = (input.title ? `Write \`title: ${JSON.stringify(input.title)}\` in its block: the name people see. The key stays "${input.name}". ` : '') +
48
+ 'Then open a change request so I can review and merge it.';
36
49
  const desc = input.description.trim();
37
50
  if (input.start === 'duplicate' && input.from) {
38
51
  return (`Create a new agent named "${input.name}" in kortix.yaml as a copy of the "${input.from.name}" agent ` +
@@ -61,6 +74,10 @@ export function CreateAgentModal({ open, onOpenChange, projectId, config, }) {
61
74
  const [description, setDescription] = useState('');
62
75
  const [from, setFrom] = useState('');
63
76
  const slug = name.trim() ? slugifySlug(name, '') : '';
77
+ const title = createAgentTitle(name, slug);
78
+ // The preview's placeholder: a display name, and the key it would get.
79
+ const placeholderSlug = slugifySlug(t('namePlaceholder'), 'new-agent');
80
+ const placeholderTitle = t('namePlaceholder') === placeholderSlug ? agentDisplayName(placeholderSlug) : t('namePlaceholder');
64
81
  // Every declared agent and the built-in ones: a new agent can never take a
65
82
  // platform agent's key. `agents` (the Duplicate sources) leaves them out.
66
83
  const taken = (config?.agents ?? []).some((a) => a.name === slug) || isMyKortixAgentName(slug);
@@ -72,6 +89,7 @@ export function CreateAgentModal({ open, onOpenChange, projectId, config, }) {
72
89
  configure.start(createAgentPrompt({
73
90
  start,
74
91
  name: slug,
92
+ title,
75
93
  description,
76
94
  from: source ? { name: source.name, path: source.path } : undefined,
77
95
  }));
@@ -90,5 +108,5 @@ export function CreateAgentModal({ open, onOpenChange, projectId, config, }) {
90
108
  return (_jsx(Modal, { open: open, onOpenChange: onOpenChange, children: _jsx(ModalContent, { className: "flex flex-col space-y-0 overflow-hidden lg:max-w-4xl", children: _jsxs("form", { className: "flex min-h-0 flex-1 flex-col", onSubmit: (event) => {
91
109
  event.preventDefault();
92
110
  submit();
93
- }, children: [_jsxs("div", { className: "flex min-h-0 flex-1", children: [_jsxs("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [_jsx(ModalHeader, { className: "shrink-0 pb-4", children: _jsx(ModalTitle, { children: t('newAgent') }) }), _jsxs(ModalBody, { className: "min-h-0 overflow-y-auto", children: [_jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "new-agent-name", children: t('name') }), _jsx(Input, { id: "new-agent-name", value: name, placeholder: t('namePlaceholder'), onChange: (e) => setName(e.target.value), autoFocus: true }), taken ? (_jsxs("p", { className: "text-foreground flex items-center gap-1.5 text-xs", children: [_jsx(StatusDot, { tone: "destructive" }), t('nameTaken')] })) : null] }), _jsxs("div", { className: "space-y-1.5", children: [_jsx("p", { className: "text-foreground text-sm font-medium", children: t('howToStart') }), _jsx(RadioGroup, { "aria-label": t('howToStart'), value: start, onValueChange: (next) => setStart(next), className: "gap-1", children: choices.map((choice) => (_jsx(RadioGroupItem, { value: choice.key, label: choice.title, description: choice.help, size: "lg" }, choice.key))) })] }), start === 'duplicate' ? (_jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { children: t('copyOf') }), _jsxs(Select, { value: from, onValueChange: setFrom, children: [_jsx(SelectTrigger, { "aria-label": t('copyOf'), className: "w-full", children: _jsx(SelectValue, { placeholder: t('pickAgent') }) }), _jsx(SelectContent, { children: agents.map((agent) => (_jsx(SelectItem, { value: agent.name, children: _jsxs("span", { className: "flex min-w-0 items-center gap-2", children: [_jsx(AgentMark, { slug: agent.name }), _jsx("span", { className: "truncate", children: agentDisplayName(agent.name) })] }) }, agent.name))) })] })] })) : null, _jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "new-agent-description", children: start === 'describe' ? t('whatItDoes') : tI18nComplete.raw('text526e0087cc3f') }), _jsx(Textarea, { id: "new-agent-description", value: description, placeholder: start === 'describe' ? t('whatItDoesPlaceholder') : t('descriptionPlaceholderShort'), onChange: (e) => setDescription(e.target.value), minHeight: start === 'describe' ? 90 : 52 })] })] })] }), _jsxs("aside", { "aria-label": t('preview'), className: "bg-background hidden w-96 shrink-0 flex-col gap-4 overflow-y-auto border-l p-5 lg:flex", children: [_jsx("p", { className: "text-muted-foreground text-sm font-medium", children: t('preview') }), _jsxs("div", { className: "space-y-1", children: [_jsx("div", { className: "pb-3", children: _jsx(AgentMark, { slug: slug || 'new-agent', size: 42 }) }), _jsx("p", { className: cn('truncate text-lg font-medium', slug ? 'text-foreground' : 'text-muted-foreground'), children: agentDisplayName(slug || t('namePlaceholder')) }), _jsx("p", { className: "text-muted-foreground truncate font-mono text-xs", children: `agents.${slug || t('namePlaceholder')}` }), description.trim() ? (_jsx("p", { className: "text-foreground line-clamp-3 pt-1 text-sm text-pretty", children: description.trim() })) : null] }), _jsxs("div", { className: "space-y-2.5 border-t pt-4", children: [start === 'duplicate' && source ? (_jsxs(PreviewFact, { label: t('copyOf'), children: [_jsx(AgentMark, { slug: source.name }), _jsx("span", { className: "truncate", children: agentDisplayName(source.name) })] })) : null, _jsx(PreviewFact, { label: tPage('instructions'), children: startsWith.instructions }), _jsx(PreviewFact, { label: t('tabAccess'), children: startsWith.access })] })] })] }), _jsxs(ModalFooter, { className: cn('shrink-0 border-t py-3', FOOTER_SAFE_AREA), children: [_jsx("p", { className: "text-muted-foreground mr-auto hidden text-xs sm:block", children: t('composerNote') }), _jsx(Button, { type: "button", variant: "ghost", size: "sm", className: "w-full sm:w-auto", onClick: () => onOpenChange(false), children: tI18nComplete.raw('text19766ed6ccb2') }), _jsx(Button, { type: "submit", size: "sm", className: "w-full sm:w-auto", disabled: !ready || configure.pending, "aria-busy": configure.pending || undefined, children: t('createAgent') })] })] }) }) }));
111
+ }, children: [_jsxs("div", { className: "flex min-h-0 flex-1", children: [_jsxs("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [_jsx(ModalHeader, { className: "shrink-0 pb-4", children: _jsx(ModalTitle, { children: t('newAgent') }) }), _jsxs(ModalBody, { className: "min-h-0 overflow-y-auto", children: [_jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "new-agent-name", children: t('name') }), _jsx(Input, { id: "new-agent-name", value: name, placeholder: t('namePlaceholder'), onChange: (e) => setName(e.target.value), maxLength: AGENT_TITLE_MAX_LENGTH, autoFocus: true }), taken ? (_jsxs("p", { className: "text-foreground flex items-center gap-1.5 text-xs", children: [_jsx(StatusDot, { tone: "destructive" }), t('nameTaken')] })) : null] }), _jsxs("div", { className: "space-y-1.5", children: [_jsx("p", { className: "text-foreground text-sm font-medium", children: t('howToStart') }), _jsx(RadioGroup, { "aria-label": t('howToStart'), value: start, onValueChange: (next) => setStart(next), className: "gap-1", children: choices.map((choice) => (_jsx(RadioGroupItem, { value: choice.key, label: choice.title, description: choice.help, size: "lg" }, choice.key))) })] }), start === 'duplicate' ? (_jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { children: t('copyOf') }), _jsxs(Select, { value: from, onValueChange: setFrom, children: [_jsx(SelectTrigger, { "aria-label": t('copyOf'), className: "w-full", children: _jsx(SelectValue, { placeholder: t('pickAgent') }) }), _jsx(SelectContent, { children: agents.map((agent) => (_jsx(SelectItem, { value: agent.name, children: _jsxs("span", { className: "flex min-w-0 items-center gap-2", children: [_jsx(AgentMark, { slug: agent.name }), _jsx("span", { className: "truncate", children: agentDisplayName(agent.name, agent.title) })] }) }, agent.name))) })] })] })) : null, _jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "new-agent-description", children: start === 'describe' ? t('whatItDoes') : tI18nComplete.raw('text526e0087cc3f') }), _jsx(Textarea, { id: "new-agent-description", value: description, placeholder: start === 'describe' ? t('whatItDoesPlaceholder') : t('descriptionPlaceholderShort'), onChange: (e) => setDescription(e.target.value), minHeight: start === 'describe' ? 90 : 52 })] })] })] }), _jsxs("aside", { "aria-label": t('preview'), className: "bg-background hidden w-96 shrink-0 flex-col gap-4 overflow-y-auto border-l p-5 lg:flex", children: [_jsx("p", { className: "text-muted-foreground text-sm font-medium", children: t('preview') }), _jsxs("div", { className: "space-y-1", children: [_jsx("div", { className: "pb-3", children: _jsx(AgentMark, { slug: slug || 'new-agent', size: 42 }) }), _jsx("p", { className: cn('truncate text-lg font-medium', slug ? 'text-foreground' : 'text-muted-foreground'), children: slug ? agentDisplayName(slug, title) : placeholderTitle }), _jsx("p", { className: "text-muted-foreground truncate font-mono text-xs", children: `agents.${slug || placeholderSlug}` }), description.trim() ? (_jsx("p", { className: "text-foreground line-clamp-3 pt-1 text-sm text-pretty", children: description.trim() })) : null] }), _jsxs("div", { className: "space-y-2.5 border-t pt-4", children: [start === 'duplicate' && source ? (_jsxs(PreviewFact, { label: t('copyOf'), children: [_jsx(AgentMark, { slug: source.name }), _jsx("span", { className: "truncate", children: agentDisplayName(source.name, source.title) })] })) : null, _jsx(PreviewFact, { label: tPage('instructions'), children: startsWith.instructions }), _jsx(PreviewFact, { label: t('tabAccess'), children: startsWith.access })] })] })] }), _jsxs(ModalFooter, { className: cn('shrink-0 border-t py-3', FOOTER_SAFE_AREA), children: [_jsx("p", { className: "text-muted-foreground mr-auto hidden text-xs sm:block", children: t('composerNote') }), _jsx(Button, { type: "button", variant: "ghost", size: "sm", className: "w-full sm:w-auto", onClick: () => onOpenChange(false), children: tI18nComplete.raw('text19766ed6ccb2') }), _jsx(Button, { type: "submit", size: "sm", className: "w-full sm:w-auto", disabled: !ready || configure.pending, "aria-busy": configure.pending || undefined, children: t('createAgent') })] })] }) }) }));
94
112
  }
@@ -3,7 +3,7 @@ import { errorToast, successToast } from '../../primitives/toast.js';
3
3
  import { useTranslations } from '../../i18n/index.js';
4
4
  import { updateProjectDefaultAgent } from '@kortix/sdk';
5
5
  import { qk } from '@kortix/sdk/react';
6
- import { capitalizeWords } from '../../_vendor/kortix-shared.js';
6
+ import { agentDisplayName } from '../../_vendor/kortix-shared.js';
7
7
  import { useMutation, useQueryClient } from '@tanstack/react-query';
8
8
  export function useDefaultAgent(projectId) {
9
9
  const t = useTranslations('hardcodedUi.i18nComplete');
@@ -11,7 +11,7 @@ export function useDefaultAgent(projectId) {
11
11
  return useMutation({
12
12
  mutationFn: (name) => updateProjectDefaultAgent(projectId, name),
13
13
  onSuccess: async (result) => {
14
- successToast(t('text0bb557895b32', { value0: capitalizeWords(result.default_agent) }));
14
+ successToast(t('text0bb557895b32', { value0: agentDisplayName(result.default_agent) }));
15
15
  await client.invalidateQueries({ queryKey: qk.project.detail(projectId) });
16
16
  },
17
17
  onError: (error) => errorToast(error.message || t.raw('text7f724c2ad694')),
@@ -35,11 +35,20 @@ export declare function ConnectorStatusBadge({ connector, accountCount, }: {
35
35
  /**
36
36
  * A project connector's logo with its state on it, the way a Slack or Teams
37
37
  * app tile shows one: a dot on the bottom-right corner (green Connected,
38
- * orange Needs account, red Error). The word is for screen readers; the dot
39
- * carries it on screen.
38
+ * orange Needs account, red Error). The dot is a second cue only: colour is
39
+ * never the only means (WCAG 1.4.1). Put {@link ConnectorStatusWord} in the
40
+ * tile's subtitle, which says the state in words.
40
41
  */
41
42
  export declare function ConnectorStatusLogo({ connector, source, accountCount, }: {
42
43
  connector: AdminConnector;
43
44
  source: ConnectorLogoSource;
44
45
  accountCount?: number;
45
46
  }): import("react").JSX.Element;
47
+ /**
48
+ * The state as visible text after a tile's subtitle (" · Needs account").
49
+ * A healthy connector stays quiet and renders nothing.
50
+ */
51
+ export declare function ConnectorStatusWord({ connector, accountCount }: {
52
+ connector: AdminConnector;
53
+ accountCount?: number;
54
+ }): import("react").JSX.Element | null;
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { CheckIcon, } from '@phosphor-icons/react';
4
4
  import { useTranslations } from '../../i18n/index.js';
5
5
  import { ConnectorLogo } from '../../internal/connector-logo/connector-logo.js';
@@ -41,11 +41,23 @@ export function ConnectorStatusBadge({ connector, accountCount, }) {
41
41
  /**
42
42
  * A project connector's logo with its state on it, the way a Slack or Teams
43
43
  * app tile shows one: a dot on the bottom-right corner (green Connected,
44
- * orange Needs account, red Error). The word is for screen readers; the dot
45
- * carries it on screen.
44
+ * orange Needs account, red Error). The dot is a second cue only: colour is
45
+ * never the only means (WCAG 1.4.1). Put {@link ConnectorStatusWord} in the
46
+ * tile's subtitle, which says the state in words.
46
47
  */
47
48
  export function ConnectorStatusLogo({ connector, source, accountCount, }) {
48
49
  const t = useTranslations('connectorPages');
49
50
  const tone = connectorTone(connector, accountCount);
50
- return (_jsxs("span", { className: "relative flex shrink-0", children: [_jsx(ConnectorLogo, { source: source, size: "lg" }), _jsx("span", { "aria-hidden": true, className: "bg-background absolute -right-1 -bottom-1 flex size-3 items-center justify-center rounded-full", children: _jsx("span", { className: cn('size-2 rounded-full', STATUS_DOT[tone]) }) }), _jsx("span", { className: "sr-only", children: t(STATUS_WORD[tone]) })] }));
51
+ return (_jsxs("span", { className: "relative flex shrink-0", children: [_jsx(ConnectorLogo, { source: source, size: "lg" }), _jsx("span", { "aria-hidden": true, className: "bg-background absolute -right-1 -bottom-1 flex size-3 items-center justify-center rounded-full", children: _jsx("span", { className: cn('size-2 rounded-full', STATUS_DOT[tone]) }) }), tone === 'connected' ? _jsx("span", { className: "sr-only", children: t(STATUS_WORD[tone]) }) : null] }));
52
+ }
53
+ /**
54
+ * The state as visible text after a tile's subtitle (" · Needs account").
55
+ * A healthy connector stays quiet and renders nothing.
56
+ */
57
+ export function ConnectorStatusWord({ connector, accountCount }) {
58
+ const t = useTranslations('connectorPages');
59
+ const tone = connectorTone(connector, accountCount);
60
+ if (tone === 'connected')
61
+ return null;
62
+ return (_jsxs(_Fragment, { children: [' · ', _jsx("span", { className: "text-foreground", "data-connector-tone": tone, children: t(STATUS_WORD[tone]) })] }));
51
63
  }
@@ -26,7 +26,7 @@ import { EmptyState } from '../../primitives/empty-state.js';
26
26
  import { connectorConnectionQueryKeys } from '../../internal/hooks/connectors/invalidate-connections.js';
27
27
  import { PROJECT_ACTIONS } from '../../internal/lib/project-actions.js';
28
28
  import { useProjectCan } from '../../internal/lib/use-project-can.js';
29
- import { ConnectorStatusBadge, ConnectorStatusLogo } from './connector-identity.js';
29
+ import { ConnectorStatusBadge, ConnectorStatusLogo, ConnectorStatusWord } from './connector-identity.js';
30
30
  import { CatalogCard } from '../shared/catalog/catalog-card.js';
31
31
  import { DENSE_GRID_CLASSNAME, DENSE_GRID_CONTAINER_CLASSNAME } from '../shared/catalog/catalog-grid-tokens.js';
32
32
  import { ConnectorLogo } from '../../internal/connector-logo/connector-logo.js';
@@ -119,12 +119,16 @@ function ChannelsFallback() {
119
119
  * reach the agent, rather than what the agent can reach).
120
120
  */
121
121
  const SCOPES = ['all', 'connected', 'channels'];
122
+ /** The `connectorPages` key of each scope's tab label. */
122
123
  const SCOPE_LABEL = {
123
- all: 'All',
124
- connected: 'Connected',
124
+ all: 'scopeAll',
125
+ // "Added", not "Connected": the tab lists every connector added to this
126
+ // workspace, whatever its state. A connector that still needs an account
127
+ // is added, not connected; its tile says so in words.
128
+ connected: 'scopeAdded',
125
129
  // The tab holds everything Kortix built (Slack, Teams, Email, Telegram and
126
130
  // the computer). People call those channels; the catalog type stays "Kortix".
127
- channels: 'Channels',
131
+ channels: 'scopeChannels',
128
132
  };
129
133
  /**
130
134
  * The heading follows the scope. "Give agents access to outside tools and
@@ -343,7 +347,7 @@ export function ConnectorsPage({ projectId, surface = { kind: 'global' }, grant,
343
347
  return (_jsx("div", { className: DENSE_GRID_CONTAINER_CLASSNAME, children: _jsx("div", { className: DENSE_GRID_CLASSNAME, children: list.map((connector) => {
344
348
  const row = rows.get(connector.slug);
345
349
  const toggle = agentScoped && row?.onCheckedChange ? (_jsxs("span", { className: "flex items-center gap-2", children: [row.checked && row.control && row.control !== '—' ? row.control : null, _jsx(Switch, { "aria-label": connectorDisplayName(connector), checked: row.checked === true, onCheckedChange: row.onCheckedChange, disabled: row.disabled })] })) : undefined;
346
- return (_jsx(CatalogCard, { variant: "plain", href: connectorHref(projectId, connector.slug), leading: _jsx(ConnectorStatusLogo, { connector: connector, source: installedConnectorLogoSource(connector) }), title: connectorDisplayName(connector), subtitle: _jsx("span", { className: "text-muted-foreground truncate text-xs", children: describeConnector(connector) }), trailing: toggle, trailingInteractive: toggle !== undefined, className: cn(agentScoped && row?.checked === false && 'opacity-60 hover:opacity-100') }, connector.slug));
350
+ return (_jsx(CatalogCard, { variant: "plain", href: connectorHref(projectId, connector.slug), leading: _jsx(ConnectorStatusLogo, { connector: connector, source: installedConnectorLogoSource(connector) }), title: connectorDisplayName(connector), subtitle: _jsxs("span", { className: "text-muted-foreground truncate text-xs", children: [describeConnector(connector), _jsx(ConnectorStatusWord, { connector: connector })] }), trailing: toggle, trailingInteractive: toggle !== undefined, className: cn(agentScoped && row?.checked === false && 'opacity-60 hover:opacity-100') }, connector.slug));
347
351
  }) }) }));
348
352
  };
349
353
  // Quiet on purpose: a filter, not a second tab strip.
@@ -369,7 +373,7 @@ export function ConnectorsPage({ projectId, surface = { kind: 'global' }, grant,
369
373
  // static labels over a scope read out of the URL have nothing to wait for.
370
374
  // Project scope shows it in the filter row; agent scope shows it on the
371
375
  // heading of the list it narrows, below the grant sentence.
372
- const scopeTabs = visibleScopes.length > 1 ? (_jsx(Tabs, { value: scope, onValueChange: (value) => setScope(value), children: _jsx(TabsList, { children: visibleScopes.map((value) => (_jsx(TabsTrigger, { value: value, children: SCOPE_LABEL[value] }, value))) }) })) : null;
376
+ const scopeTabs = visibleScopes.length > 1 ? (_jsx(Tabs, { value: scope, onValueChange: (value) => setScope(value), children: _jsx(TabsList, { children: visibleScopes.map((value) => (_jsx(TabsTrigger, { value: value, children: tPages(SCOPE_LABEL[value]) }, value))) }) })) : null;
373
377
  // The project's connectors as rows, with the page-level states: loading,
374
378
  // a failed load, nothing yet, nothing matching.
375
379
  const listBody = (list) => {
@@ -162,7 +162,7 @@ function CatalogAppPage({ projectId, appSegment }) {
162
162
  setPendingControl(key);
163
163
  // The way the user picked is the way installed.
164
164
  const mcpUrl = surface.kind === 'mcp' && surface.oneClick ? surface.url : null;
165
- const askName = () => ask({ target, way: { kind: surface.kind, oneClick: surface.oneClick }, connectors, app, asNewProfile });
165
+ const askName = () => ask({ target, way: { kind: surface.kind, oneClick: surface.oneClick, url: surface.url }, connectors, app, asNewProfile });
166
166
  if (!mcpUrl) {
167
167
  askName();
168
168
  return;
@@ -244,7 +244,7 @@ function CatalogAppPage({ projectId, appSegment }) {
244
244
  _jsx(ChannelHeroLogoInHeader, { children: _jsx(ChannelsSection, { projectId: projectId, platform: channelPlatform }) })) : null, !channelPlatform && (infoCells.length > 0 || resolved.description) ? (_jsxs("div", { className: "bg-popover divide-border divide-y overflow-hidden rounded-md border", children: [infoCells.length > 0 ? (_jsx("dl", { className: "flex flex-wrap gap-x-8 gap-y-3 px-4 py-3", children: infoCells.map((cell) => (_jsxs("div", { className: "min-w-0 space-y-0.5", children: [_jsxs("dt", { className: "text-muted-foreground flex h-4 items-center justify-between gap-2 text-xs", children: [_jsx("span", { children: cell.label }), cell.labelAddon] }), _jsx("dd", { className: "text-foreground truncate text-sm font-medium", children: cell.value })] }, cell.key))) })) : null, resolved.description ? (_jsxs("div", { className: "space-y-1.5 px-4 py-4", children: [_jsx("h2", { className: "text-muted-foreground text-xs", children: t('overview') }), _jsx("p", { className: "text-foreground text-sm text-pretty", children: resolved.description })] })) : null] })) : null, inProject.length > 0 ? (_jsxs("section", { className: "space-y-3", children: [_jsx("h2", { className: "text-foreground text-sm font-medium", children: projectName ? t('installedIn', { project: projectName }) : t('installedHere') }), _jsx("ul", { className: ROW_GROUP, children: inProject.map((connector) => {
245
245
  const tone = connectorTone(connector, connectionsQuery.data ? connectorAccounts(connectionsQuery.data.connections, connector).length : undefined);
246
246
  return (_jsx("li", { children: _jsxs(Link, { href: connectorHref(projectId, connector.slug, { app }), className: "hover:bg-muted/50 flex items-center gap-3 px-4 py-3 transition-colors", children: [_jsxs("span", { className: "min-w-0 flex-1", children: [_jsx("span", { className: "text-foreground block truncate text-sm font-medium", children: connectorDisplayName(connector) }), _jsx("span", { className: "text-muted-foreground block truncate text-xs", children: connectorSummary(connector, providerLabel(connector.provider)) })] }), _jsx("span", { className: "flex w-28 shrink-0 items-center", children: _jsx(ConnectorStatusBadge, { tone: tone }) }), _jsxs("span", { className: "text-muted-foreground flex w-16 shrink-0 items-center justify-end gap-1 text-xs", children: [t('open'), _jsx(CaretRightIcon, { "aria-hidden": true, className: "size-4" })] })] }) }, connector.slug));
247
- }) })] })) : null, resolved.surfaces.length === 0 && resolved.references.length === 0 ? (_jsx(EmptyState, { icon: GlobeIcon, size: "sm", title: tI18nComplete.raw('text363579e1d66b'), description: tI18nComplete.raw('text4d286e47d580') })) : null, waySurfaces.length > (channelPlatform ? 0 : 1) || resolved.references.length > 0 ? (_jsxs("section", { className: "space-y-3", children: [_jsx("h2", { className: "text-foreground text-sm font-medium", children: channelPlatform ? t('otherWaysToConnect') : t('waysToConnect') }), waySurfaces.length > 0 ? (_jsx("ul", { className: ROW_GROUP, children: waySurfaces.map((surface) => (_jsxs("li", { className: SURFACE_ROW, children: [_jsxs("span", { className: "min-w-0 flex-1 space-y-0.5", children: [_jsxs("span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [_jsx("span", { className: "text-foreground truncate text-sm font-medium", children: surface.label }), _jsx(Badge, { variant: "muted", size: "xs", children: wayKindLabel(surface.kind) }), surface.oneClick ? (_jsx(Badge, { variant: "secondary", size: "xs", children: t('wayOneClick') })) : null, surface.recommended ? (_jsx(Badge, { variant: "success", size: "xs", children: t('wayRecommended') })) : null] }), _jsx("span", { className: "text-muted-foreground block text-xs text-pretty", children: wayDescription(t, { kind: surface.kind, oneClick: surface.oneClick }, resolved.name) })] }), surface.variantId && detail ? (_jsx(Button, { type: "button", variant: shownWay?.variantId === surface.variantId ? 'secondary' : 'outline-ghost', size: "sm", "aria-pressed": shownWay?.variantId === surface.variantId, onClick: () => {
247
+ }) })] })) : null, resolved.surfaces.length === 0 && resolved.references.length === 0 ? (_jsx(EmptyState, { icon: GlobeIcon, size: "sm", title: tI18nComplete.raw('text363579e1d66b'), description: tI18nComplete.raw('text4d286e47d580') })) : null, waySurfaces.length > (channelPlatform ? 0 : 1) || resolved.references.length > 0 ? (_jsxs("section", { className: "space-y-3", children: [_jsx("h2", { className: "text-foreground text-sm font-medium", children: channelPlatform ? t('otherWaysToConnect') : t('waysToConnect') }), waySurfaces.length > 0 ? (_jsx("ul", { className: ROW_GROUP, children: waySurfaces.map((surface) => (_jsxs("li", { className: SURFACE_ROW, children: [_jsxs("span", { className: "min-w-0 flex-1 space-y-0.5", children: [_jsxs("span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [_jsx("span", { className: "text-foreground truncate text-sm font-medium", children: surface.label }), _jsx(Badge, { variant: "muted", size: "xs", children: wayKindLabel(surface.kind) }), surface.oneClick ? (_jsx(Badge, { variant: "secondary", size: "xs", children: t('wayOneClick') })) : null, surface.recommended ? (_jsx(Badge, { variant: "success", size: "xs", children: t('wayRecommended') })) : null] }), _jsx("span", { className: "text-muted-foreground block text-xs text-pretty", children: wayDescription(t, { kind: surface.kind, oneClick: surface.oneClick, url: surface.url }, resolved.name) })] }), surface.variantId && detail ? (_jsx(Button, { type: "button", variant: shownWay?.variantId === surface.variantId ? 'secondary' : 'outline-ghost', size: "sm", "aria-pressed": shownWay?.variantId === surface.variantId, onClick: () => {
248
248
  setToolsWay(surface.variantId);
249
249
  setAllTools(false);
250
250
  }, children: t('wayTools') })) : null, installMenu(surface.key, surface, 'secondary', surface.label)] }, surface.key))) })) : null, resolved.references.length > 0 ? (_jsxs("p", { className: "text-muted-foreground text-xs text-pretty", children: [t('otherWaysLead'), ' ', resolved.references.map((reference, index) => (_jsxs(Fragment, { children: [index > 0 ? ', ' : null, reference.href ? (_jsxs("a", { href: reference.href, target: "_blank", rel: "noreferrer", className: "text-foreground inline-flex items-center gap-0.5 underline-offset-4 hover:underline", children: [reference.label, _jsx(ArrowSquareOutIcon, { "aria-hidden": true, className: "size-3 shrink-0" })] })) : (reference.label)] }, reference.key)))] })) : null] })) : null, shownWay ? (_jsxs("section", { className: "space-y-3", children: [_jsxs("div", { className: "flex items-baseline justify-between gap-3", children: [_jsx("h2", { className: "text-foreground text-sm font-medium", children: t('toolsOf', { kind: wayKindLabel(shownWay.kind) }) }), toolsQuery.data ? (_jsx("span", { className: "text-muted-foreground text-xs tabular-nums", children: t('toolsCount', { count: toolsQuery.data.total }) })) : null] }), toolsQuery.isPending ? (_jsx(Skeleton, { className: "h-24 w-full py-0" })) : toolsQuery.isError ? (_jsx("p", { className: "text-muted-foreground text-sm", children: t('toolsUnavailable') })) : toolsQuery.data && toolsQuery.data.tools.length > 0 ? (_jsxs(_Fragment, { children: [_jsx("p", { className: "text-muted-foreground text-xs", children: t(`toolsSource_${toolsQuery.data.source}`) }), groupAppTools(allTools ? toolsQuery.data.tools : toolsQuery.data.tools.slice(0, TOOLS_PREVIEW), appNames).map((group) => (_jsxs("div", { className: "space-y-2", children: [_jsxs("h3", { className: "text-muted-foreground text-xs", children: [tI18nComplete.raw(TOOL_GROUP_LABEL[group.key]), " \u00B7 ", group.tools.length] }), _jsx("ul", { className: ROW_GROUP, children: group.tools.map((tool) => {
@@ -50,7 +50,7 @@ export function ConnectorTriggers({ projectId, connector, displayName, }) {
50
50
  const [creating, setCreating] = useState(false);
51
51
  if (isError)
52
52
  return null;
53
- return (_jsxs("section", { className: "space-y-2", children: [_jsxs("div", { className: "flex items-center justify-between gap-3", children: [_jsx(Label, { children: tI18nComplete.raw('textea56119b98e2') }), controls.canCreate ? (_jsxs(Button, { size: "sm", variant: "secondary", className: "gap-1.5", onClick: () => setCreating(true), children: [_jsx(PlusIcon, { className: "size-4 shrink-0" }), tI18nComplete.raw('text1ee2cf623464')] })) : null] }), isLoading ? (_jsx(Skeleton, { className: "h-14 rounded-md" })) : rows.length === 0 ? (_jsx("p", { className: "text-muted-foreground text-xs text-pretty", children: tI18nComplete('text974e43358191', {
53
+ return (_jsxs("section", { className: "space-y-2", children: [_jsxs("div", { className: "flex items-center justify-between gap-3", children: [_jsx(Label, { children: tI18nComplete.raw('text458ceb31019b') }), controls.canCreate ? (_jsxs(Button, { size: "sm", variant: "secondary", className: "gap-1.5", onClick: () => setCreating(true), children: [_jsx(PlusIcon, { className: "size-4 shrink-0" }), tI18nComplete.raw('text85a6c98e5584')] })) : null] }), isLoading ? (_jsx(Skeleton, { className: "h-14 rounded-md" })) : rows.length === 0 ? (_jsx("p", { className: "text-muted-foreground text-xs text-pretty", children: tI18nComplete('text974e43358191', {
54
54
  name: displayName,
55
55
  }) })) : (_jsx("ul", { className: "space-y-2", children: rows.map((trigger) => (_jsxs("li", { className: "bg-popover flex items-center gap-3 rounded-md border px-4 py-2", children: [_jsx(TriggerTile, { trigger: trigger, surface: "bg-popover" }), _jsxs("span", { className: "min-w-0 flex-1", children: [_jsxs("span", { className: "flex min-w-0 items-center gap-2", children: [_jsx(Link, { href: adminPath(projectId, `triggers?id=${encodeURIComponent(trigger.slug)}`), className: "min-w-0 truncate text-sm font-medium hover:underline", children: triggerName(trigger) }), _jsx(TriggerStatusBadge, { trigger: trigger })] }), _jsx("span", { className: "text-muted-foreground block truncate text-xs", children: describeWhen(trigger, eventNames) }), trigger.event ? (_jsx("span", { className: "text-muted-foreground block truncate text-xs", children: describeEventSource(trigger.event, tI18nComplete, appIndex) })) : null] })] }, trigger.slug))) })), _jsx(TriggerComposer, { projectId: projectId, open: creating, onOpenChange: setCreating, onCreated: () => setCreating(false), initialKind: "event", initialConnector: { slug: connector.slug, name: displayName } })] }));
56
56
  }
@@ -4,6 +4,8 @@ import { type WayKind } from './way-kind.js';
4
4
  export interface InstallWay {
5
5
  kind: WayKind;
6
6
  oneClick: boolean;
7
+ /** The server URL of an MCP way, when the catalogue has one. */
8
+ url?: string | null;
7
9
  }
8
10
  /**
9
11
  * Install → this dialog → the connector. The text says which way it
@@ -9,6 +9,8 @@ import Loading from '../../../primitives/loading.js';
9
9
  import { Modal, ModalBody, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalTitle, } from '../../../primitives/modal.js';
10
10
  import { useTranslations } from '../../../i18n/index.js';
11
11
  import { wayKindLabel } from './way-kind.js';
12
+ /** Kortix's own Google servers (the API's `connectors/google`): Kortix connects, not the vendor's MCP server. */
13
+ const KORTIX_GOOGLE_MCP = 'https://google.mcp.kortix.com/';
12
14
  /**
13
15
  * Install → this dialog → the connector. The text says which way it
14
16
  * connects, so a Composio app or an API key never comes as a surprise. The
@@ -34,7 +36,10 @@ export function wayDescription(t, way, appName) {
34
36
  return t('wayComposio', { name: appName });
35
37
  if (way.kind === 'kortix')
36
38
  return t('wayChannel', { name: appName });
37
- if (way.kind === 'mcp')
39
+ if (way.kind === 'mcp') {
40
+ if (way.url?.startsWith(KORTIX_GOOGLE_MCP))
41
+ return t('wayKortixGoogle', { name: appName });
38
42
  return way.oneClick ? t('wayMcpOneClick', { name: appName }) : t('wayMcpSetup', { name: appName });
43
+ }
39
44
  return t('wayApi', { name: appName, kind: wayKindLabel(way.kind) });
40
45
  }
@@ -24,10 +24,12 @@ export declare function useAgentAccess(projectId: string): {
24
24
  agents: Array<{
25
25
  name: string;
26
26
  path: string;
27
+ title?: string | null;
27
28
  description: string | null;
28
29
  mode: string | null;
29
30
  hidden?: boolean;
30
31
  model?: string | null;
32
+ run?: string | null;
31
33
  source?: "opencode" | "kortix.yaml" | "kortix.toml";
32
34
  enabled?: boolean;
33
35
  platform?: boolean;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Customize → Evals → Jobs → Compare (`/admin/eval-jobs/compare?jobs=a,b`):
3
+ * jobs side by side, task by task. The first job is the baseline; `change`
4
+ * reads the last job against it. The way to tell whether an agent got better
5
+ * or worse on the same tasks, and on which ones.
6
+ */
7
+ export declare function EvalCompareView({ projectId, jobIds }: {
8
+ projectId: string;
9
+ jobIds: string[];
10
+ }): import("react").JSX.Element;