@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
@@ -13,7 +13,7 @@ export type AppDeployStrategy = 'rolling' | 'immediate' | 'bluegreen' | 'canary'
13
13
  export type AppAutoStop = 'off' | 'stop' | 'suspend';
14
14
  /** `public`: no gate. `app`: the App's access policy and Kortix sign-in. `admins`: project admins only. */
15
15
  export type AppServiceAccess = 'public' | 'app' | 'admins';
16
- export type AppServiceProtocol = 'http' | 'tcp';
16
+ type AppServiceProtocol = 'http' | 'tcp';
17
17
  export interface AppCheck {
18
18
  type: 'http' | 'tcp';
19
19
  /** Defaults to the service's `internal_port`. */
@@ -24,7 +24,7 @@ export interface AppCheck {
24
24
  timeout_s: number;
25
25
  grace_period_s: number;
26
26
  }
27
- export interface AppService {
27
+ interface AppService {
28
28
  /** `http` is the primary service: it answers on the App's own host. */
29
29
  name: string;
30
30
  internal_port: number;
@@ -45,7 +45,7 @@ export interface AppMount {
45
45
  snapshot_retention_days: number;
46
46
  processes: string[];
47
47
  }
48
- export interface AppVmSize {
48
+ interface AppVmSize {
49
49
  cpu: number;
50
50
  memory_gb: number;
51
51
  /** Root disk; the data belongs on a mount. */
@@ -53,7 +53,7 @@ export interface AppVmSize {
53
53
  /** Groups this size applies to; empty = every group without a more specific entry. */
54
54
  processes: string[];
55
55
  }
56
- export interface AppDeployConfig {
56
+ interface AppDeployConfig {
57
57
  strategy: AppDeployStrategy;
58
58
  /** Runs once per release in a temporary machine (new image, secrets, no mounts) before machines update. */
59
59
  release_command: string | null;
@@ -93,31 +93,6 @@ export interface AppConfigIssue {
93
93
  path: string;
94
94
  message: string;
95
95
  }
96
- export declare const DEFAULT_PROCESS_GROUP = "app";
97
- export declare const PRIMARY_SERVICE = "http";
98
- /** Ports the App supervisor owns inside every machine. */
99
- export declare const RESERVED_APP_PORTS: readonly [7331, 8080];
100
- export declare const APP_VM_LIMITS: {
101
- readonly cpu: {
102
- readonly min: 1;
103
- readonly max: 32;
104
- };
105
- readonly memory_gb: {
106
- readonly min: 1;
107
- readonly max: 128;
108
- };
109
- readonly disk_gb: {
110
- readonly min: 1;
111
- readonly max: 500;
112
- };
113
- };
114
- export declare const DEFAULT_APP_VM: {
115
- readonly cpu: 1;
116
- readonly memory_gb: 2;
117
- readonly disk_gb: 10;
118
- };
119
- export declare const DEFAULT_SNAPSHOT_RETENTION_DAYS = 5;
120
- export declare const MAX_SNAPSHOT_RETENTION_DAYS = 60;
121
96
  /** Platinum caps a volume at 100 GiB (its largest size class). */
122
97
  export declare const MAX_VOLUME_GB = 100;
123
98
  /**
@@ -153,7 +128,7 @@ export interface AppDisplay {
153
128
  agent?: string | null;
154
129
  }
155
130
  /** What the Apps grid reads of an App: the web's `App` and the API's App JSON both fit. */
156
- export interface GridApp {
131
+ interface GridApp {
157
132
  slug: string;
158
133
  display?: AppDisplay | null;
159
134
  services?: ReadonlyArray<{
@@ -181,3 +156,4 @@ export declare const SPACE_SLUG_RE: RegExp;
181
156
  export declare const BINDING_AGENT_RE: RegExp;
182
157
  /** What is wrong with an authored `display` block of the App `slug`. Paths are relative to the block. */
183
158
  export declare function appDisplayIssues(display: unknown, slug: string): AppConfigIssue[];
159
+ export {};
@@ -9,40 +9,6 @@
9
9
  /** The `platform` of a `channel` connector. The order is the manifest schema's enum order. */
10
10
  export declare const CHANNEL_PLATFORM_IDS: readonly ["slack", "teams", "email", "telegram", "discord"];
11
11
  export type ChannelPlatformId = (typeof CHANNEL_PLATFORM_IDS)[number];
12
- export interface ChannelDescriptor {
13
- /** The display name. */
14
- label: string;
15
- /** The platform word of a prompt header, `[<envelope> · …]`. Transcripts store it: never rename one. */
16
- envelope: string;
17
- /** The `native:<id>` catalog card. Its icon is `/connector-icons/<id>.svg`. */
18
- catalog: {
19
- domain: string;
20
- description: string;
21
- };
22
- /** The most characters one message holds. */
23
- messageChars?: number;
24
- /**
25
- * Up to `max` option buttons on one question: Teams posts more options as a
26
- * form, Telegram turns pages of `max`. `dataBytes`: the platform's cap on a
27
- * button's data.
28
- */
29
- buttons?: {
30
- max: number;
31
- dataBytes?: number;
32
- };
33
- /** The token a person pastes to connect. */
34
- connect?: {
35
- tokenPattern: RegExp;
36
- tokenPlaceholder: string;
37
- };
38
- /** Senders pass an allow-list of these user ids. */
39
- access?: {
40
- userId: RegExp;
41
- idPlaceholder: string;
42
- idsPlaceholder: string;
43
- idInputMode: 'numeric' | 'text';
44
- };
45
- }
46
12
  export declare const CHANNELS: {
47
13
  readonly slack: {
48
14
  readonly label: "Slack";
@@ -1,4 +1,4 @@
1
- export interface LegacyChannelHeader {
1
+ interface LegacyChannelHeader {
2
2
  /** The platform word as written, such as `Slack`. */
3
3
  platform: string;
4
4
  /** The channel or chat, trimmed. */
@@ -10,3 +10,4 @@ export interface LegacyChannelHeader {
10
10
  }
11
11
  /** The header at the start of `text`, or null when `text` does not start with one. */
12
12
  export declare function readLegacyChannelHeader(text: string): LegacyChannelHeader | null;
13
+ export {};
@@ -124,31 +124,6 @@ export declare function groupIntoSections<T>(items: readonly T[], getCategories:
124
124
  * Reached through `sectionTitle` for anything no curated section claimed.
125
125
  */
126
126
  export declare function humanizeCategory(raw: string): string;
127
- /**
128
- * The tools a person browsing a category should meet first, in the order they
129
- * should meet them.
130
- *
131
- * **Why a hand-written list.** The catalogue is ~5,758 apps and the feed's own
132
- * order is not an editorial judgement — it is whatever the provider returns.
133
- * Left alone, a category's first six cards are arbitrary, and someone who does
134
- * not already know the space cannot tell a household name from a long-tail
135
- * entry. These lists put the recognisable ones in front.
136
- *
137
- * **Keys are `CURATED_SECTIONS` keys**, not a second vocabulary — a key that
138
- * is not a real section is a test failure, so this cannot drift into naming
139
- * sections that no longer exist.
140
- *
141
- * **Entries are matched against an app's folded slug OR its folded name**, so
142
- * one token covers both catalogues. An entry that matches nothing is inert: it
143
- * pins nothing, hides nothing, and cannot duplicate a card. That is the whole
144
- * safety story for a list written from product knowledge rather than from a
145
- * catalogue dump — being wrong costs a pin, never a render.
146
- *
147
- * An app only reaches a section if the FEED puts it in that category, so
148
- * pinning `slack` under both communication and productivity is not a conflict;
149
- * whichever section Slack actually lands in is the one where its pin applies.
150
- */
151
- export declare const CATEGORY_PICKS: Record<string, readonly string[]>;
152
127
  /** Sorts after every pinned entry. `Number.MAX_SAFE_INTEGER` rather than
153
128
  * `Infinity` so the subtraction in the comparator stays a real number —
154
129
  * `Infinity - Infinity` is `NaN`, and a `NaN` comparator silently leaves the
@@ -17,7 +17,7 @@
17
17
  * non-overlapping, in order. `attrs` is the attribute text without its leading
18
18
  * whitespace, as the regex's first group was.
19
19
  */
20
- export interface FileTagBlock {
20
+ interface FileTagBlock {
21
21
  /** Index of `<file`. */
22
22
  index: number;
23
23
  /** Index just past `</file>`. */
@@ -26,3 +26,4 @@ export interface FileTagBlock {
26
26
  attrs: string;
27
27
  }
28
28
  export declare function fileTagBlocks(text: string): FileTagBlock[];
29
+ export {};
@@ -40,8 +40,10 @@ export declare const BUILTIN_AGENT_KEYS: BuiltinAgentKey[];
40
40
  export declare function builtinAgentKeyOf(agentName: string | null | undefined): BuiltinAgentKey | null;
41
41
  /**
42
42
  * An agent's name as a person reads it: My Kortix for the built-in agent,
43
- * otherwise the manifest key in sentence case with its separators as spaces
43
+ * then its `kortix.yaml` `title` as written ("GitHub PR reviewer"), otherwise
44
+ * the manifest key in sentence case with its separators as spaces
44
45
  * (`session-reviewer` → "Session reviewer"). One helper, so the web app, the
45
- * sidebar and channel posts (Slack) name an agent the same way.
46
+ * sidebar and channel posts (Slack) name an agent the same way. Pass `title`
47
+ * wherever the agent record is in hand; a bare slug keeps the derived name.
46
48
  */
47
- export declare function agentDisplayName(slug: string): string;
49
+ export declare function agentDisplayName(slug: string, title?: string | null): string;
@@ -1,7 +1,3 @@
1
- /** Chat pastes at or above this length become a "Pasted text" tile. */
2
- export declare const PASTE_TILE_MIN_CHARS = 1000;
3
- /** Chat pastes with more lines than this become a tile. */
4
- export declare const PASTE_TILE_MIN_LINES = 10;
5
1
  /** Inline tiles may add at most this many UTF-8 bytes to a prompt; larger pastes go out as a file. */
6
2
  export declare const PASTED_INLINE_MAX_BYTES = 100000;
7
3
  export type PastedContent = {
@@ -9,24 +9,7 @@
9
9
  * are plain text, the same width, and symmetric on both axes.
10
10
  */
11
11
  export declare const PIXEL_KORTIX_ROWS: readonly ["## ## ##", "## ## ##", "+#+ ## +#+", " ##+ ## +## ", " ######## ", " ######## ", " ##+ ## +## ", "+#+ ## +#+", "## ## ##", "## ## ##"];
12
- /**
13
- * An agent's pixel mark: a 7×7 mirrored pixel figure derived from its slug.
14
- *
15
- * Same slug, same mark, on every surface and every device. Nothing is stored:
16
- * the slug is hashed (FNV-1a), the hash seeds a PRNG (mulberry32), the PRNG
17
- * fills the left half of the grid against a density mask, and the half is
18
- * mirrored. A draw that fails the quality gate is redrawn from a salted seed,
19
- * so retries stay deterministic. The tone comes from a second hash.
20
- *
21
- * This is the shape, one copy for every host: web (`@kortix/ui` `pixelMark`,
22
- * which adds the tile tone) and mobile (`AgentPixelMark`, theme ink).
23
- *
24
- * Changing SIZE, MASK, the gate or PALETTES changes every agent's mark — the
25
- * golden test in `pixel-mark.test.ts` exists to make that a deliberate act.
26
- */
27
- export declare const PIXEL_MARK_SIZE = 7;
28
12
  type Grid = boolean[][];
29
- export declare function fnv1a(input: string): number;
30
13
  /** Readable at 14px, fills the frame, one connected body. */
31
14
  export declare function passesPixelMarkGate(grid: Grid): boolean;
32
15
  export declare function pixelMarkShape(slug: string): {
@@ -31,7 +31,6 @@
31
31
  * `KortixDither` the vector symbol through an 8 x 8 Bayer dither. The web
32
32
  * registry draws them with its own components.
33
33
  */
34
- export declare const KORTIX_GLYPH_NAMES: readonly ["KortixMark", "KortixPixel", "KortixDither"];
35
34
  export declare const PROJECT_GLYPH_GROUPS: readonly [{
36
35
  readonly label: "Kortix";
37
36
  readonly names: readonly ["KortixMark", "KortixPixel", "KortixDither"];
@@ -30,3 +30,11 @@ export declare function splitFilenameForTile(name: string): {
30
30
  head: string;
31
31
  tail: string;
32
32
  } | null;
33
+ /**
34
+ * A short name cut into the pieces a line may break between: after `-`, `_`
35
+ * or a space, and before the extension's dot. The tile puts a `<wbr>` between
36
+ * pieces and lets the browser break nowhere else unless one piece alone is
37
+ * wider than the tile, so `dsa-c-attach.txt` wraps as `dsa-c-attach` /
38
+ * `.txt`, never `dsa-c-attach.t` / `xt` (dev audit, 2026-11-14).
39
+ */
40
+ export declare function filenameBreakSegments(name: string): string[];
@@ -16,6 +16,9 @@ export declare const WORKSPACE_SETTINGS_GROUPS: readonly [{
16
16
  }, {
17
17
  readonly id: "library";
18
18
  readonly sections: readonly ["agents", "models", "connectors", "secrets", "skills", "drives", "apps", "triggers", "sandbox", "git", "repo"];
19
+ }, {
20
+ readonly id: "evals";
21
+ readonly sections: readonly ["evals", "eval-datasets", "eval-tasks", "eval-jobs"];
19
22
  }, {
20
23
  readonly id: "people";
21
24
  readonly sections: readonly ["members", "groups", "roles", "identity", "audit"];
@@ -14,6 +14,12 @@ export interface CopyRowProps {
14
14
  successMessage?: string;
15
15
  /** Extra controls between the value and the copy button (Reveal, Rotate…). */
16
16
  actions?: ReactNode;
17
+ /**
18
+ * Show the whole value: it sizes the row to the value and wraps at any
19
+ * character when the row has no room, instead of cutting it off. For an id
20
+ * a person reads out or compares (the Workspace ID).
21
+ */
22
+ wrap?: boolean;
17
23
  className?: string;
18
24
  }
19
- export declare function CopyRow({ value, label, display, successMessage, actions, className, }: CopyRowProps): import("react").JSX.Element;
25
+ export declare function CopyRow({ value, label, display, successMessage, actions, wrap, className, }: CopyRowProps): import("react").JSX.Element;
@@ -29,7 +29,7 @@ export async function copyValue(value, successMsg, failureMsg) {
29
29
  return false;
30
30
  }
31
31
  }
32
- export function CopyRow({ value, label, display, successMessage, actions, className, }) {
32
+ export function CopyRow({ value, label, display, successMessage, actions, wrap = false, className, }) {
33
33
  const tI18nComplete = useTranslations('hardcodedUi.i18nComplete');
34
34
  const { copy, copied } = useCopy({
35
35
  successMessage: successMessage ?? tI18nComplete.raw('textd37078fe6a1f'),
@@ -37,5 +37,5 @@ export function CopyRow({ value, label, display, successMessage, actions, classN
37
37
  const copyLabel = copied
38
38
  ? tI18nComplete.raw('text8d525e5f158b')
39
39
  : tI18nComplete.raw('texte21f935f11d7');
40
- return (_jsxs("div", { className: cn('space-y-1.5', className), children: [label ? _jsx("span", { className: "text-muted-foreground text-xs font-medium", children: label }) : null, _jsxs("div", { className: "bg-popover flex items-center gap-2 rounded-md border px-3 py-2", children: [_jsx("code", { className: "text-foreground min-w-0 flex-1 truncate font-mono text-xs", children: display ?? value }), actions, _jsx(Hint, { label: copyLabel, children: _jsx(Button, { type: "button", variant: "ghost", size: "icon-xs", "aria-label": copyLabel, onClick: () => void copy(value), className: "text-muted-foreground hover:text-foreground shrink-0", children: _jsx("span", { className: "relative inline-flex size-3.5 items-center justify-center", children: _jsx(AnimatePresence, { initial: false, mode: "popLayout", children: _jsx(m.span, { initial: { scale: 0.25, opacity: 0, filter: 'blur(4px)' }, animate: { scale: 1, opacity: 1, filter: 'blur(0px)' }, exit: { scale: 0.25, opacity: 0, filter: 'blur(4px)' }, transition: { type: 'spring', duration: 0.3, bounce: 0 }, className: "absolute inset-0 inline-flex items-center justify-center", children: copied ? (_jsx(CheckIcon, { className: "text-kortix-green size-3.5" })) : (_jsx(CopyIcon, { className: "size-3.5" })) }, copied ? 'check' : 'copy') }) }) }) })] })] }));
40
+ return (_jsxs("div", { className: cn('space-y-1.5', className), children: [label ? _jsx("span", { className: "text-muted-foreground text-xs font-medium", children: label }) : null, _jsxs("div", { className: "bg-popover flex items-center gap-2 rounded-md border px-3 py-2", children: [_jsx("code", { className: cn('text-foreground min-w-0 flex-1 font-mono text-xs', wrap ? 'break-all' : 'truncate'), children: display ?? value }), actions, _jsx(Hint, { label: copyLabel, children: _jsx(Button, { type: "button", variant: "ghost", size: "icon-xs", "aria-label": copyLabel, onClick: () => void copy(value), className: "text-muted-foreground hover:text-foreground shrink-0", children: _jsx("span", { className: "relative inline-flex size-3.5 items-center justify-center", children: _jsx(AnimatePresence, { initial: false, mode: "popLayout", children: _jsx(m.span, { initial: { scale: 0.25, opacity: 0, filter: 'blur(4px)' }, animate: { scale: 1, opacity: 1, filter: 'blur(0px)' }, exit: { scale: 0.25, opacity: 0, filter: 'blur(4px)' }, transition: { type: 'spring', duration: 0.3, bounce: 0 }, className: "absolute inset-0 inline-flex items-center justify-center", children: copied ? (_jsx(CheckIcon, { className: "text-kortix-green size-3.5" })) : (_jsx(CopyIcon, { className: "size-3.5" })) }, copied ? 'check' : 'copy') }) }) }) })] })] }));
41
41
  }
@@ -1,6 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
- import { AnimatePresence, m, useReducedMotion } from "motion/react";
3
+ import { AnimatePresence, m } from "motion/react";
4
+ import { useReducedMotion } from "./internal/hooks/use-reduced-motion.js";
4
5
  export function AnimatedCopyIcon({ copied, children, }) {
5
6
  const reducedMotion = useReducedMotion();
6
7
  if (reducedMotion)
@@ -59,7 +59,8 @@ export declare function SandboxAddressBar({ displayValue, hasPreview, isLoading,
59
59
  * `AppPreview` puts `Copy link` here. */
60
60
  trailing?: ReactNode;
61
61
  /** The address takes no input (the session's computer is booting). Pair it
62
- * with `hasPreview={false}`, which disables the buttons. */
62
+ * with `hasPreview={false}`, which disables the page buttons. Back/Forward
63
+ * follow the history alone, so a landing page can still go Forward. */
63
64
  disabled?: boolean;
64
65
  }): import("react").JSX.Element;
65
66
  /**
@@ -121,7 +121,7 @@ export function SandboxAddressBar({ displayValue, hasPreview, isLoading, canGoBa
121
121
  onNavigate(internal);
122
122
  }, [addressValue, onNavigate, suggestions]);
123
123
  const suggestionsId = useId();
124
- return (_jsxs(_Fragment, { children: [_jsxs(ButtonGroup, { className: "shrink-0", children: [_jsx(Hint, { label: tI18nComplete.raw('text76900f1bfd16'), side: "bottom", children: _jsx(Button, { variant: "secondary", size: "icon", onClick: onBack, disabled: !hasPreview || !canGoBack, children: _jsx(ArrowLeft, { className: "size-4" }) }) }), _jsx(Hint, { label: tI18nComplete.raw('textf1c65e14817e'), side: "bottom", children: _jsx(Button, { variant: "secondary", size: "icon", onClick: onForward, disabled: !hasPreview || !canGoForward, children: _jsx(ArrowRight, { className: "size-4" }) }) })] }), _jsx("form", { onSubmit: handleAddressSubmit, className: "flex min-w-0 flex-1 items-center px-1", children: _jsxs(ButtonGroup, { className: "w-full min-w-0", children: [_jsx(Hint, { label: tI18nComplete.raw('text3a78695388b3'), side: "bottom", children: _jsx(Button, { type: "button", variant: "secondary", size: "icon", onClick: onHome, disabled: !hasPreview, "aria-label": tI18nComplete.raw('text3a78695388b3'), children: _jsx(Home, { className: "size-3.5" }) }) }), _jsxs("div", { className: cn('bg-muted flex h-7 min-w-0 flex-1 items-center gap-1 rounded-md border border-transparent px-2 text-xs tracking-tight transition-colors', addressError && 'border-kortix-red/60 focus-within:border-kortix-red/60 animate-shake'), children: [_jsxs("div", { className: "group/address relative flex h-full min-w-0 flex-1 items-center", children: [_jsx(Input, { ref: inputRef, type: "text", size: "xs", disabled: disabled, value: urlParts ? displayValue : addressValue, "aria-label": ariaLabel, list: suggestions.length ? suggestionsId : undefined, onChange: (e) => {
124
+ return (_jsxs(_Fragment, { children: [_jsxs(ButtonGroup, { className: "shrink-0", children: [_jsx(Hint, { label: tI18nComplete.raw('text76900f1bfd16'), side: "bottom", children: _jsx(Button, { variant: "secondary", size: "icon", onClick: onBack, disabled: disabled || !canGoBack, "aria-label": tI18nComplete.raw('text76900f1bfd16'), children: _jsx(ArrowLeft, { className: "size-4" }) }) }), _jsx(Hint, { label: tI18nComplete.raw('textf1c65e14817e'), side: "bottom", children: _jsx(Button, { variant: "secondary", size: "icon", onClick: onForward, disabled: disabled || !canGoForward, "aria-label": tI18nComplete.raw('textf1c65e14817e'), children: _jsx(ArrowRight, { className: "size-4" }) }) })] }), _jsx("form", { onSubmit: handleAddressSubmit, className: "flex min-w-0 flex-1 items-center px-1", children: _jsxs(ButtonGroup, { className: "w-full min-w-0", children: [_jsx(Hint, { label: tI18nComplete.raw('text3a78695388b3'), side: "bottom", children: _jsx(Button, { type: "button", variant: "secondary", size: "icon", onClick: onHome, disabled: !hasPreview, "aria-label": tI18nComplete.raw('text3a78695388b3'), children: _jsx(Home, { className: "size-3.5" }) }) }), _jsxs("div", { className: cn('bg-muted flex h-7 min-w-0 flex-1 items-center gap-1 rounded-md border border-transparent px-2 text-xs tracking-tight transition-colors', addressError && 'border-kortix-red/60 focus-within:border-kortix-red/60 animate-shake'), children: [_jsxs("div", { className: "group/address relative flex h-full min-w-0 flex-1 items-center", children: [_jsx(Input, { ref: inputRef, type: "text", size: "xs", disabled: disabled, value: urlParts ? displayValue : addressValue, "aria-label": ariaLabel, list: suggestions.length ? suggestionsId : undefined, onChange: (e) => {
125
125
  setAddressValue(e.target.value);
126
126
  if (addressError)
127
127
  setAddressError(false);
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  /**
3
3
  * An Agents-page card led by the agent's pixel-mark cover. The cover gives
4
4
  * every agent a face that is the same wherever the agent appears, so a long
@@ -1,7 +1,9 @@
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
+ import { useId } from 'react';
3
4
  import { UiLink as Link } from '../../providers/ui-provider.js';
4
5
  import { AgentMarkGlyph, agentMarkVars } from '../../internal/components/agent-mark.js';
6
+ import { plainTextFromMarkdown, shortSummary } from '../../markdown/inline-code-text.js';
5
7
  import { cn } from '../../internal/lib/utils.js';
6
8
  /**
7
9
  * An Agents-page card led by the agent's pixel-mark cover. The cover gives
@@ -9,5 +11,11 @@ import { cn } from '../../internal/lib/utils.js';
9
11
  * list is scanned by shape and tone before names are read.
10
12
  */
11
13
  export function AgentCoverCard({ slug, href, onIntent, title, description, badges, meta, coverLabel, action, }) {
12
- return (_jsxs("div", { className: "group/card relative flex", children: [_jsxs(Link, { href: href, prefetch: true, onPointerEnter: onIntent, onFocus: onIntent, style: agentMarkVars(slug), className: cn('group bg-card flex-1 border-border/60 flex flex-col overflow-hidden rounded-md border text-left', 'hover:border-border transition-[border-color] duration-(--duration-normal) ease-out', 'focus-visible:ring-ring/50 focus-visible:ring-2 focus-visible:outline-none'), children: [_jsxs("span", { className: "relative flex h-31 items-center justify-center bg-(--mark-tile)", children: [_jsx(AgentMarkGlyph, { slug: slug, size: 56 }), coverLabel ? (_jsx("span", { className: "bg-background/20 absolute top-2.5 left-2.5 rounded-sm px-2 py-0.5 text-xs font-medium text-(--mark-ink) backdrop-blur-sm", children: coverLabel })) : null] }), _jsxs("span", { className: "flex min-w-0 flex-1 flex-col gap-1 px-3.5 pt-3 pb-3.5", children: [_jsxs("span", { className: "flex items-center gap-1.5", children: [_jsx("span", { className: "text-foreground truncate text-sm font-medium", children: title }), badges] }), description ? (_jsx("span", { className: "text-muted-foreground line-clamp-2 text-xs text-pretty", children: description })) : null, meta ? (_jsx("span", { className: "text-muted-foreground mt-auto flex flex-wrap items-center gap-x-2 gap-y-0.5 pt-1.5 text-xs", children: meta })) : null] })] }), action ? _jsx("span", { className: "absolute top-2 right-2", children: action }) : null] }));
14
+ // The link's name is the title alone; the summary is its description, not
15
+ // part of the name (same rule as `CatalogCard`).
16
+ const id = useId();
17
+ const titleId = `${id}-title`;
18
+ const descriptionId = `${id}-description`;
19
+ const summary = description ? plainTextFromMarkdown(description) : '';
20
+ return (_jsxs("div", { className: "group/card relative flex", children: [_jsxs(Link, { href: href, prefetch: true, onPointerEnter: onIntent, onFocus: onIntent, "aria-labelledby": titleId, "aria-describedby": summary ? descriptionId : undefined, style: agentMarkVars(slug), className: cn('group bg-card flex-1 border-border/60 flex flex-col overflow-hidden rounded-md border text-left', 'hover:border-border transition-[border-color] duration-(--duration-normal) ease-out', 'focus-visible:ring-ring/50 focus-visible:ring-2 focus-visible:outline-none'), children: [_jsxs("span", { className: "relative flex h-31 items-center justify-center bg-(--mark-tile)", children: [_jsx(AgentMarkGlyph, { slug: slug, size: 56 }), coverLabel ? (_jsx("span", { className: "bg-background/20 absolute top-2.5 left-2.5 rounded-sm px-2 py-0.5 text-xs font-medium text-(--mark-ink) backdrop-blur-sm", children: coverLabel })) : null] }), _jsxs("span", { className: "flex min-w-0 flex-1 flex-col gap-1 px-3.5 pt-3 pb-3.5", children: [_jsxs("span", { className: "flex items-center gap-1.5", children: [_jsx("span", { id: titleId, className: "text-foreground truncate text-sm font-medium", children: title }), badges] }), summary ? (_jsxs(_Fragment, { children: [_jsx("span", { className: "text-muted-foreground line-clamp-2 text-xs text-pretty", children: summary }), _jsx("span", { id: descriptionId, className: "sr-only", "aria-hidden": true, children: shortSummary(description ?? '') })] })) : null, meta ? (_jsx("span", { className: "text-muted-foreground mt-auto flex flex-wrap items-center gap-x-2 gap-y-0.5 pt-1.5 text-xs", children: meta })) : null] })] }), action ? _jsx("span", { className: "absolute top-2 right-2", children: action }) : null] }));
13
21
  }
@@ -27,6 +27,8 @@ export function filterAgents(agents, opts) {
27
27
  return false;
28
28
  if (!q)
29
29
  return true;
30
- return (agent.name.toLowerCase().includes(q) || (agent.description ?? '').toLowerCase().includes(q));
30
+ return (agent.name.toLowerCase().includes(q) ||
31
+ (agent.title ?? '').toLowerCase().includes(q) ||
32
+ (agent.description ?? '').toLowerCase().includes(q));
31
33
  });
32
34
  }
@@ -9,9 +9,19 @@
9
9
  import { type RuntimeAgentConfig } from '@kortix/sdk';
10
10
  import { type ReactNode } from 'react';
11
11
  type SetRuntime = <K extends keyof RuntimeAgentConfig>(key: K, value: RuntimeAgentConfig[K]) => void;
12
- export declare function AgentModelView({ oc, setOc, footer }: {
12
+ /** A program agent's command (`run`): what each turn runs in place of a model. */
13
+ export interface AgentProgram {
14
+ command: string;
15
+ onChange: (command: string) => void;
16
+ /** `timeout`, a duration (`30m`); undefined follows the default. */
17
+ timeout: string | undefined;
18
+ onTimeoutChange: (timeout: string | undefined) => void;
19
+ }
20
+ export declare function AgentModelView({ oc, setOc, footer, program, }: {
13
21
  oc: RuntimeAgentConfig;
14
22
  setOc: SetRuntime;
15
23
  footer?: ReactNode;
24
+ /** Set for a program agent: the view shows its command instead of the model. */
25
+ program?: AgentProgram;
16
26
  }): import("react").JSX.Element;
17
27
  export {};
@@ -21,6 +21,8 @@ import { isSliderAtDefault } from '../sections/view/agent-editor-basics-fields.j
21
21
  import { EditorSection, EditorSectionStyleProvider, SettingBlock, SettingRow, } from '../sections/view/agent-editor-primitives.js';
22
22
  /** The select's value for "no variant": the model decides. */
23
23
  const AUTO = '__auto__';
24
+ /** Duration syntax the program timeout field parses (`parseDurationSeconds`), not copy. */
25
+ const TIMEOUT_EXAMPLE = '30m';
24
26
  /** A slider that can be unset: `—` and no Reset while it follows the default. */
25
27
  function SliderField({ label, help, value, fallback, min, max, step, onChange, }) {
26
28
  const t = useI18nTranslations('agentEditor.modelView');
@@ -52,7 +54,16 @@ function ProviderOptions({ value, onChange, }) {
52
54
  // The section title names it; the row holds the rule and the field.
53
55
  _jsxs("div", { className: "space-y-2.5 px-4 py-3", children: [_jsx("p", { className: "text-muted-foreground text-xs leading-normal text-pretty", children: tTabs('providerOptionsHelp') }), _jsx(Textarea, { "aria-label": tTabs('providerOptions'), value: text, placeholder: JSON.stringify({ reasoning: 'high' }), className: "min-h-20 font-mono text-xs", "aria-invalid": invalid || undefined, onChange: (e) => commit(e.target.value) }), invalid ? _jsx("p", { className: "text-destructive text-xs", children: tTabs('providerOptionsInvalid') }) : null] }));
54
56
  }
55
- export function AgentModelView({ oc, setOc, footer }) {
57
+ function ProgramView({ program, footer }) {
58
+ const t = useI18nTranslations('agentEditor.modelView');
59
+ return (_jsx(EditorSectionStyleProvider, { value: "panel", children: _jsxs("div", { className: "mx-auto flex w-full max-w-3xl flex-col gap-8", children: [_jsxs(EditorSection, { title: t('programTitle'), lead: true, children: [_jsx(SettingBlock, { label: t('programCommand'), help: t('programHelp'), children: _jsx(Input, { "aria-label": t('programCommand'), value: program.command, spellCheck: false, className: "h-8 font-mono text-xs", onChange: (e) => program.onChange(e.target.value) }) }), _jsx(SettingRow, { label: t('programTimeout'), help: t('programTimeoutHelp'), children: _jsx(Input, { "aria-label": t('programTimeout'), value: program.timeout ?? '', placeholder: TIMEOUT_EXAMPLE, spellCheck: false, className: "h-8 font-mono text-xs", onChange: (e) => program.onTimeoutChange(e.target.value.trim() || undefined) }) })] }), footer] }) }));
60
+ }
61
+ export function AgentModelView({ oc, setOc, footer, program, }) {
62
+ if (program)
63
+ return _jsx(ProgramView, { program: program });
64
+ return _jsx(ModelView, { oc: oc, setOc: setOc, footer: footer });
65
+ }
66
+ function ModelView({ oc, setOc, footer }) {
56
67
  const t = useI18nTranslations('agentEditor.modelView');
57
68
  const tTabs = useI18nTranslations('agentEditor.tabs');
58
69
  const { data: providers } = useRuntimeProviders();
@@ -34,6 +34,16 @@ export interface OverviewFacts {
34
34
  peopleCount?: number;
35
35
  triggerCount?: number;
36
36
  }
37
+ /**
38
+ * The description, edited in place: a filled box with a pencil. Click it and
39
+ * it becomes a field in the same box; Enter or leaving keeps the edit in the
40
+ * draft, Escape puts back what was there.
41
+ */
42
+ export declare function AboutDescription({ value, onChange, subagent, }: {
43
+ value: string;
44
+ onChange?: (next: string) => void;
45
+ subagent: boolean;
46
+ }): import("react").JSX.Element;
37
47
  /** A space slug from what a person typed: the API's `SPACE_SLUG_RE` shape. */
38
48
  export declare function spaceSlug(input: string): string;
39
49
  export declare function AgentOverview({ agent, config, block, prompt, editor, sourcePath, onAskMyKortix, focusInstructions, showSpace, part, }: {
@@ -5,6 +5,7 @@ import { useState } from 'react';
5
5
  import { useTranslations as useI18nTranslations } from '../../i18n/index.js';
6
6
  import { agentDisplayName } from '../../internal/components/agent-mark.js';
7
7
  import { cn } from '../../internal/lib/utils.js';
8
+ import { InlineCodeText } from '../../markdown/inline-code-text.js';
8
9
  import { Input } from '../../primitives/input.js';
9
10
  import { Select, SelectContent, SelectItem, SelectSeparator, SelectTrigger, SelectValue, } from '../../primitives/select.js';
10
11
  import { StatusDot } from '../../primitives/status.js';
@@ -86,13 +87,13 @@ function fitHeight(el) {
86
87
  * it becomes a field in the same box; Enter or leaving keeps the edit in the
87
88
  * draft, Escape puts back what was there.
88
89
  */
89
- function AboutDescription({ value, onChange, subagent, }) {
90
+ export function AboutDescription({ value, onChange, subagent, }) {
90
91
  const t = useI18nTranslations('agentEditor.page');
91
92
  const tTabs = useI18nTranslations('agentEditor.tabs');
92
93
  const [editing, setEditing] = useState(null);
93
94
  const box = 'bg-popover block w-full rounded-md border px-3 py-2.5 text-left text-sm text-pretty';
94
95
  if (!onChange) {
95
- return value ? (_jsx("p", { className: cn(box, 'text-foreground'), children: value })) : (_jsx("p", { className: "text-muted-foreground text-sm", children: tTabs('noDescription') }));
96
+ return value ? (_jsx("p", { className: cn(box, 'text-foreground'), children: _jsx(InlineCodeText, { text: value }) })) : (_jsx("p", { className: "text-muted-foreground text-sm", children: tTabs('noDescription') }));
96
97
  }
97
98
  if (editing !== null) {
98
99
  const finish = (keep) => {
@@ -116,7 +117,7 @@ function AboutDescription({ value, onChange, subagent, }) {
116
117
  }
117
118
  } }), _jsx("p", { className: "text-muted-foreground px-3 text-xs text-pretty", children: subagent ? t('descriptionHelpSubagent') : t('descriptionHelp') })] }));
118
119
  }
119
- return (_jsxs("button", { type: "button", onClick: () => setEditing(value), "aria-label": t('description'), className: cn(box, 'group/about hover:border-foreground/20 focus-visible:ring-ring/50 flex items-start gap-3 transition-colors duration-fast focus-visible:ring-2 focus-visible:outline-none', value ? 'text-foreground' : 'text-muted-foreground'), children: [_jsx("span", { className: "min-w-0 flex-1", children: value || t('descriptionPlaceholder') }), _jsx(PencilSimpleIcon, { className: "text-muted-foreground group-hover/about:text-foreground mt-1.5 size-3.5 shrink-0 transition-colors duration-fast" })] }));
120
+ return (_jsxs("button", { type: "button", onClick: () => setEditing(value), "aria-label": t('description'), className: cn(box, 'group/about hover:border-foreground/20 focus-visible:ring-ring/50 flex items-start gap-3 transition-colors duration-fast focus-visible:ring-2 focus-visible:outline-none', value ? 'text-foreground' : 'text-muted-foreground'), children: [_jsx("span", { className: "min-w-0 flex-1", children: value ? _jsx(InlineCodeText, { text: value }) : t('descriptionPlaceholder') }), _jsx(PencilSimpleIcon, { className: "text-muted-foreground group-hover/about:text-foreground mt-1.5 size-3.5 shrink-0 transition-colors duration-fast" })] }));
120
121
  }
121
122
  // ─── Aside ───────────────────────────────────────────────────────────────────
122
123
  const PROJECT_WIDE = '__project_wide__';
@@ -221,7 +222,7 @@ function OverviewSettings({ agent, config, block, editor, showSpace, sourcePath,
221
222
  const modeLabel = behavior.mode ? AGENT_MODE_LABEL[behavior.mode] : t('modeDefault');
222
223
  const face = colorFace(behavior.color, t);
223
224
  const value = (text) => _jsx("p", { className: "text-foreground text-sm sm:text-right", children: text });
224
- return (_jsxs(_Fragment, { children: [_jsxs(EditorSection, { title: t('properties'), children: [_jsx(SettingRow, { label: t('enabled'), help: t('enabledHelp', { name: agentDisplayName(agent.name) }), children: _jsx("div", { className: "flex sm:justify-end", children: editor ? (_jsx(Switch, { "aria-label": t('enabled'), checked: enabled, onCheckedChange: (v) => editor.set('enabled', v ? undefined : false) })) : (_jsxs("span", { className: "text-foreground flex items-center gap-1.5 text-sm", children: [_jsx(StatusDot, { tone: enabled ? 'success' : 'neutral' }), enabled ? t('statusEnabled') : t('statusDisabled')] })) }) }), _jsx(SettingRow, { label: t('whoStarts'), children: editor ? (_jsxs(Select, { value: behavior.mode ?? INHERIT, onValueChange: (v) => editor.setOc('mode', v === INHERIT ? undefined : v), children: [_jsx(SelectTrigger, { "aria-label": t('whoStarts'), size: "sm", className: "w-full", children: _jsx(SelectValue, {}) }), _jsxs(SelectContent, { children: [_jsx(SelectItem, { value: INHERIT, children: t('modeDefault') }), AGENT_MODES.map((mode) => (_jsx(SelectItem, { value: mode, children: AGENT_MODE_LABEL[mode] }, mode)))] })] })) : (value(modeLabel)) }), _jsx(SettingRow, { label: t('showInPickers'), help: t('showInPickersHelp'), children: _jsx("div", { className: "flex sm:justify-end", children: editor ? (_jsx(Switch, { "aria-label": t('showInPickers'), checked: shown, onCheckedChange: (v) => editor.setOc('hidden', v ? undefined : true) })) : (value(shown ? t('pickerShown') : t('pickerHidden'))) }) }), showSpace ? (_jsx(SettingRow, { label: t('space'), children: editor ? (addingSpace ? (_jsx(NewSpaceInput, { onDone: (slug) => {
225
+ return (_jsxs(_Fragment, { children: [_jsxs(EditorSection, { title: t('properties'), children: [_jsx(SettingRow, { label: t('enabled'), help: t('enabledHelp', { name: agentDisplayName(agent.name, agent.title) }), children: _jsx("div", { className: "flex sm:justify-end", children: editor ? (_jsx(Switch, { "aria-label": t('enabled'), checked: enabled, onCheckedChange: (v) => editor.set('enabled', v ? undefined : false) })) : (_jsxs("span", { className: "text-foreground flex items-center gap-1.5 text-sm", children: [_jsx(StatusDot, { tone: enabled ? 'success' : 'neutral' }), enabled ? t('statusEnabled') : t('statusDisabled')] })) }) }), _jsx(SettingRow, { label: t('whoStarts'), children: editor ? (_jsxs(Select, { value: behavior.mode ?? INHERIT, onValueChange: (v) => editor.setOc('mode', v === INHERIT ? undefined : v), children: [_jsx(SelectTrigger, { "aria-label": t('whoStarts'), size: "sm", className: "w-full", children: _jsx(SelectValue, {}) }), _jsxs(SelectContent, { children: [_jsx(SelectItem, { value: INHERIT, children: t('modeDefault') }), AGENT_MODES.map((mode) => (_jsx(SelectItem, { value: mode, children: AGENT_MODE_LABEL[mode] }, mode)))] })] })) : (value(modeLabel)) }), _jsx(SettingRow, { label: t('showInPickers'), help: t('showInPickersHelp'), children: _jsx("div", { className: "flex sm:justify-end", children: editor ? (_jsx(Switch, { "aria-label": t('showInPickers'), checked: shown, onCheckedChange: (v) => editor.setOc('hidden', v ? undefined : true) })) : (value(shown ? t('pickerShown') : t('pickerHidden'))) }) }), showSpace ? (_jsx(SettingRow, { label: t('space'), children: editor ? (addingSpace ? (_jsx(NewSpaceInput, { onDone: (slug) => {
225
226
  setAddingSpace(false);
226
227
  if (slug)
227
228
  editor.set('space', slug);
@@ -116,11 +116,10 @@ export declare function AgentStatePage({ title, children }: {
116
116
  children: ReactNode;
117
117
  }): import("react").JSX.Element;
118
118
  /**
119
- * The unsaved-edits bar, in the shape of the select-mode bar every list uses
120
- * (`SelectionBar`, the Triggers bulk bar): one popover card, the state on the
121
- * left with the changed tabs muted after it, then one secondary ButtonGroup of
122
- * text buttons (Discard, Save ⌘S). It rises in like that bar and leaves at
123
- * once. While the save runs, the session dot matrix leads and both disable.
119
+ * The agent page's unsaved-edits bar: an `ActionBar` docked at the bottom of
120
+ * the page, titled "Unsaved changes." with the changed tabs muted after it, then
121
+ * Discard and Save ⌘S (the page binds the key). While the save runs, the
122
+ * session dot matrix leads and both disable.
124
123
  */
125
124
  export declare function SaveBar({ dirty, pending, changed, onDiscard, onSave, }: {
126
125
  dirty: boolean;
@@ -143,4 +142,4 @@ export declare function LeaveDialog({ open, changed, pending, onStay, onLeave, o
143
142
  onSaveAndLeave: () => void;
144
143
  }): import("react").JSX.Element;
145
144
  /** The agent's display name, for header titles. */
146
- export declare function agentTitle(slug: string): string;
145
+ export declare function agentTitle(slug: string, title?: string | null): string;
@@ -27,16 +27,13 @@ import { SETTINGS_SIDEBAR_WIDTH_PX } from '../../internal/components/nav-rail.js
27
27
  import { CaretRightIcon } from '@phosphor-icons/react';
28
28
  import { useInCustomizeFrame } from '../shared/customize-tab-bar.js';
29
29
  import { cn } from '../../internal/lib/utils.js';
30
+ import { ActionBar, ActionBarDock } from '../../primitives/action-bar.js';
30
31
  import { Button } from '../../primitives/button.js';
31
- import { ButtonGroup } from '../../primitives/button-group.js';
32
- import { SessionDotMatrix } from '../../primitives/dot-matrix/session-dot-matrix.js';
33
32
  import { AlertDialog, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from '../../primitives/alert-dialog.js';
34
- import { Kbd } from '../../primitives/kbd.js';
35
33
  import { useOptionalSidebar } from '../../primitives/sidebar.js';
36
34
  import { Skeleton } from '../../primitives/skeleton.js';
37
35
  import { StatusDot } from '../../primitives/status.js';
38
36
  import { UiLink as Link, useUiShallowNavigate } from '../../providers/ui-provider.js';
39
- import { m, useReducedMotion } from 'motion/react';
40
37
  import { FadedScrollArea } from '../../primitives/faded-scroll-area.js';
41
38
  import { SECTION_ICON } from './agent-overview.js';
42
39
  /**
@@ -141,18 +138,24 @@ export function AgentStatePage({ title, children }) {
141
138
  return (_jsxs("div", { className: "flex h-full min-h-0 flex-1 flex-col", children: [_jsx(CustomizeHeader, { title: title, rule: true }), _jsx("div", { className: "min-h-0 flex-1 overflow-y-auto", children: _jsx("div", { className: "mx-auto w-full max-w-xl px-4 py-16", children: children }) })] }));
142
139
  }
143
140
  /**
144
- * The unsaved-edits bar, in the shape of the select-mode bar every list uses
145
- * (`SelectionBar`, the Triggers bulk bar): one popover card, the state on the
146
- * left with the changed tabs muted after it, then one secondary ButtonGroup of
147
- * text buttons (Discard, Save ⌘S). It rises in like that bar and leaves at
148
- * once. While the save runs, the session dot matrix leads and both disable.
141
+ * The agent page's unsaved-edits bar: an `ActionBar` docked at the bottom of
142
+ * the page, titled "Unsaved changes." with the changed tabs muted after it, then
143
+ * Discard and Save ⌘S (the page binds the key). While the save runs, the
144
+ * session dot matrix leads and both disable.
149
145
  */
150
146
  export function SaveBar({ dirty, pending, changed, onDiscard, onSave, }) {
151
147
  const tI18nComplete = useI18nTranslations('hardcodedUi.i18nComplete');
152
- const reduceMotion = useReducedMotion();
153
148
  if (!dirty)
154
149
  return null;
155
- return (_jsx("div", { className: "pointer-events-none absolute inset-x-0 bottom-4 z-30 flex justify-center px-4", children: _jsxs(m.div, { initial: { opacity: 0, transform: reduceMotion ? 'translateY(0px)' : 'translateY(8px)' }, animate: { opacity: 1, transform: 'translateY(0px)', transition: { duration: 0.18, ease: [0.23, 1, 0.32, 1] } }, className: "bg-popover text-popover-foreground border-border pointer-events-auto flex w-full items-center gap-3 rounded-lg border p-2 pl-3.5 shadow-md md:w-auto md:min-w-md md:max-w-full", children: [_jsxs("span", { className: "flex min-w-0 flex-1 items-center gap-2 text-sm font-medium", "aria-live": "polite", children: [pending ? _jsx(SessionDotMatrix, { size: 14, className: "shrink-0" }) : null, _jsx("span", { className: "shrink-0", children: tI18nComplete.raw('textefa5855ff509') }), _jsx("span", { className: "text-muted-foreground min-w-0 truncate font-normal", children: changed })] }), _jsxs(ButtonGroup, { className: "shrink-0", children: [_jsx(Button, { type: "button", variant: "secondary", size: "sm", className: "h-8 shrink-0", onClick: onDiscard, disabled: pending, children: tI18nComplete.raw('texteb1a70e39274') }), _jsxs(Button, { type: "button", variant: "secondary", size: "sm", className: "h-8 shrink-0 gap-1.5", onClick: onSave, disabled: pending, "aria-busy": pending || undefined, children: [tI18nComplete.raw('text1509f561f241'), _jsx(Kbd, { children: tI18nComplete.raw('text8cd003e6301b') })] })] })] }) }));
150
+ return (_jsx(ActionBarDock, { children: _jsx(ActionBar, { title: tI18nComplete.raw('textefa5855ff509'), description: changed, busy: pending, actions: [
151
+ { id: 'discard', label: tI18nComplete.raw('texteb1a70e39274'), onSelect: onDiscard },
152
+ {
153
+ id: 'save',
154
+ label: tI18nComplete.raw('text1509f561f241'),
155
+ kbd: ['mod', 'S'],
156
+ onSelect: onSave,
157
+ },
158
+ ] }) }));
156
159
  }
157
160
  /**
158
161
  * Asked when a link would leave the page with unsaved edits. Three answers:
@@ -163,6 +166,6 @@ export function LeaveDialog({ open, changed, pending, onStay, onLeave, onSaveAnd
163
166
  return (_jsx(AlertDialog, { open: open, onOpenChange: (next) => (next ? undefined : onStay()), children: _jsxs(AlertDialogContent, { className: "sm:max-w-md", children: [_jsxs(AlertDialogHeader, { children: [_jsx(AlertDialogTitle, { children: t('leaveTitle') }), _jsx(AlertDialogDescription, { children: t('leaveBody', { tabs: changed }) })] }), _jsxs(AlertDialogFooter, { children: [_jsx(AlertDialogCancel, { disabled: pending, children: t('stay') }), _jsx(Button, { variant: "secondary", size: "sm", onClick: onLeave, disabled: pending, children: t('leave') }), _jsx(Button, { size: "sm", onClick: onSaveAndLeave, disabled: pending, "aria-busy": pending || undefined, children: t('saveAndLeave') })] })] }) }));
164
167
  }
165
168
  /** The agent's display name, for header titles. */
166
- export function agentTitle(slug) {
167
- return agentDisplayName(slug);
169
+ export function agentTitle(slug, title) {
170
+ return agentDisplayName(slug, title);
168
171
  }