@kortix/ui 0.16.1 → 0.16.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/dist/_vendor/kortix-shared.js +133 -26
  2. package/dist/_vendor/shared/index.d.ts +1 -0
  3. package/dist/_vendor/shared/space-icon.d.ts +30 -0
  4. package/dist/_vendor/shared/space-slug.d.ts +12 -0
  5. package/dist/access/access/access-dialog.js +2 -2
  6. package/dist/access/share-dialog.d.ts +77 -0
  7. package/dist/access/share-dialog.js +160 -0
  8. package/dist/access/sharing-picker.d.ts +8 -1
  9. package/dist/access/sharing-picker.js +2 -2
  10. package/dist/changes/change-list.js +3 -3
  11. package/dist/customize/connectors/catalog/catalog-paging.d.ts +1 -1
  12. package/dist/customize/connectors/catalog/catalog-paging.js +1 -1
  13. package/dist/customize/providers/provider-sheet.js +17 -7
  14. package/dist/customize/sections/component/manifest-copy-block.js +1 -1
  15. package/dist/customize/sections/component/section-wrapper.d.ts +1 -8
  16. package/dist/customize/sections/component/section-wrapper.js +3 -3
  17. package/dist/customize/sections/llm-provider/model-capability-icons.js +1 -1
  18. package/dist/customize/sections/view/gateway/generation-controls.js +1 -1
  19. package/dist/customize/sections/view/git-view.js +1 -1
  20. package/dist/customize/settings/settings-tabs.js +0 -5
  21. package/dist/customize/settings/tabs/general-tab.js +2 -2
  22. package/dist/customize/shared/capability-page-shell.d.ts +2 -2
  23. package/dist/customize/shared/capability-page-shell.js +7 -5
  24. package/dist/customize/shared/capability-scroll-root.js +1 -2
  25. package/dist/customize/shared/catalog/catalog-card.js +1 -1
  26. package/dist/files/project/components/change-requests-panel.js +2 -2
  27. package/dist/files/project/components/checkpoint-detail-dialog.js +4 -4
  28. package/dist/files/project/components/checkpoints-panel.js +2 -2
  29. package/dist/files/project/components/drive-explorer.js +2 -2
  30. package/dist/files/project/components/file-breadcrumbs.js +1 -1
  31. package/dist/files/project/components/file-history-popover.js +2 -2
  32. package/dist/files/project/components/file-thumbnail.js +1 -1
  33. package/dist/files/project/components/open-change-request-dialog.js +1 -1
  34. package/dist/files/renderers/mermaid/mermaid-diagram.js +2 -2
  35. package/dist/files/renderers/show-content-renderer.js +6 -6
  36. package/dist/files/renderers/sqlite-renderer.js +8 -8
  37. package/dist/files/renderers/zip/zip-renderer.js +2 -2
  38. package/dist/files/viewer/file-content-renderer.js +5 -5
  39. package/dist/files/viewer/json-tree-view.js +3 -3
  40. package/dist/i18n/en.d.ts +131 -8
  41. package/dist/i18n/en.js +167 -44
  42. package/dist/i18n/ui-catalog/remaining-ui-translation-keys.generated.js +0 -3
  43. package/dist/internal/billing/use-cost-explorer.d.ts +9 -2
  44. package/dist/internal/billing/use-cost-explorer.js +22 -0
  45. package/dist/internal/billing/use-session-costs.d.ts +7 -2
  46. package/dist/internal/billing/use-session-costs.js +6 -0
  47. package/dist/internal/chrome/use-chrome-offered.d.ts +3 -3
  48. package/dist/internal/chrome/use-chrome-offered.js +3 -3
  49. package/dist/internal/components/nav-rail.d.ts +1 -20
  50. package/dist/internal/components/nav-rail.js +1 -15
  51. package/dist/internal/layout/project-page-header.d.ts +13 -9
  52. package/dist/internal/layout/project-page-header.js +14 -10
  53. package/dist/internal/lib/browser-noise/evidence.d.ts +2 -0
  54. package/dist/internal/lib/browser-noise/rules/injected-scripts.js +16 -1
  55. package/dist/internal/lib/error-handler.js +0 -9
  56. package/dist/internal/lib/interface-theme-defaults.js +2 -2
  57. package/dist/internal/lib/project-actions.d.ts +4 -5
  58. package/dist/internal/lib/project-actions.js +3 -5
  59. package/dist/internal/lib/project-preamble.d.ts +42 -4
  60. package/dist/internal/lib/project-preamble.js +49 -5
  61. package/dist/internal/lib/web-notifications.js +17 -29
  62. package/dist/internal/outcomes/outcome-vocabulary.js +1 -1
  63. package/dist/internal/stores/session-filter-store.d.ts +1 -1
  64. package/dist/internal/stores/user-preferences-store.d.ts +2 -2
  65. package/dist/internal/stores/workspace-settings-rail-store.d.ts +0 -8
  66. package/dist/internal/stores/workspace-settings-rail-store.js +0 -2
  67. package/dist/lib/routes.d.ts +7 -0
  68. package/dist/lib/routes.js +6 -1
  69. package/dist/markdown/doc-editor/doc-extensions.js +2 -0
  70. package/dist/markdown/doc-editor/doc-paste.d.ts +13 -0
  71. package/dist/markdown/doc-editor/doc-paste.js +67 -0
  72. package/dist/markdown/markdown-frontmatter.js +3 -3
  73. package/dist/markdown/markdown-policy.d.ts +1 -1
  74. package/dist/markdown/ordered-list.js +1 -1
  75. package/dist/primitives/context-menu.d.ts +1 -0
  76. package/dist/primitives/definition-list.js +1 -1
  77. package/dist/primitives/dropdown-menu.d.ts +1 -0
  78. package/dist/primitives/emoji-picker.js +1 -1
  79. package/dist/primitives/expandable-search.d.ts +57 -0
  80. package/dist/primitives/expandable-search.js +58 -0
  81. package/dist/primitives/favicon-avatar.js +1 -1
  82. package/dist/primitives/file-tree.d.ts +1 -1
  83. package/dist/primitives/file-tree.js +1 -1
  84. package/dist/primitives/glyph-picker.js +2 -2
  85. package/dist/primitives/input-group.js +1 -1
  86. package/dist/primitives/menu-base.d.ts +10 -0
  87. package/dist/primitives/menu-base.js +7 -2
  88. package/dist/primitives/phone-input.js +1 -1
  89. package/dist/primitives/profile-hover-card.d.ts +28 -0
  90. package/dist/primitives/profile-hover-card.js +22 -0
  91. package/dist/primitives/settings-section-header.d.ts +5 -5
  92. package/dist/primitives/settings-section-header.js +5 -5
  93. package/dist/primitives/sort-menu.d.ts +23 -0
  94. package/dist/primitives/sort-menu.js +54 -0
  95. package/dist/primitives/tabs.js +1 -1
  96. package/dist/primitives/toast-clearance.d.ts +12 -28
  97. package/dist/primitives/toast-clearance.js +23 -45
  98. package/dist/primitives/user-avatar.js +2 -3
  99. package/dist/session/agents/subagent-dialog-content.js +28 -70
  100. package/dist/session/composer/ComposerCard.d.ts +4 -1
  101. package/dist/session/composer/ComposerCard.js +51 -7
  102. package/dist/session/composer/composer-chat-input.js +3 -1
  103. package/dist/session/composer/composer-toolbar.d.ts +3 -1
  104. package/dist/session/composer/composer-toolbar.js +6 -2
  105. package/dist/session/composer/composer-underbar.d.ts +3 -1
  106. package/dist/session/composer/composer-underbar.js +2 -2
  107. package/dist/session/composer/composer.d.ts +12 -0
  108. package/dist/session/composer/composer.js +112 -6
  109. package/dist/session/composer/draft/composer-draft.d.ts +1 -0
  110. package/dist/session/composer/draft/composer-draft.js +10 -2
  111. package/dist/session/composer/draft/draft-uploads.js +13 -2
  112. package/dist/session/composer/draft/use-composer-draft.d.ts +2 -0
  113. package/dist/session/composer/draft/use-composer-draft.js +41 -6
  114. package/dist/session/composer/drive-mentions.d.ts +34 -0
  115. package/dist/session/composer/drive-mentions.js +98 -0
  116. package/dist/session/composer/editor/composer-editor.d.ts +3 -0
  117. package/dist/session/composer/editor/composer-editor.js +3 -1
  118. package/dist/session/composer/editor/serialize.js +3 -4
  119. package/dist/session/composer/menus/mention-controller.d.ts +3 -0
  120. package/dist/session/composer/menus/mention-controller.js +5 -0
  121. package/dist/session/composer/menus/mention-menu.d.ts +20 -3
  122. package/dist/session/composer/menus/mention-menu.js +33 -6
  123. package/dist/session/composer/menus/menu-items.d.ts +16 -1
  124. package/dist/session/composer/menus/menu-items.js +21 -1
  125. package/dist/session/composer/submit-latch.d.ts +3 -1
  126. package/dist/session/composer/submit-latch.js +5 -1
  127. package/dist/session/composer/types.d.ts +9 -2
  128. package/dist/session/header/session-changes-indicator.js +1 -1
  129. package/dist/session/header/session-site-header.js +2 -2
  130. package/dist/session/media/sandbox-url-detector.js +3 -3
  131. package/dist/session/models/model-connection-gate.d.ts +5 -0
  132. package/dist/session/models/model-connection-gate.js +12 -3
  133. package/dist/session/models/model-connection-layout.d.ts +7 -0
  134. package/dist/session/models/model-connection-layout.js +7 -0
  135. package/dist/session/models/provider-failure-recovery.js +1 -1
  136. package/dist/session/models/subscription-offer.d.ts +6 -5
  137. package/dist/session/models/subscription-offer.js +6 -6
  138. package/dist/session/panel/advanced/advanced-panel.js +1 -1
  139. package/dist/session/panel/session-detail-panel.js +1 -1
  140. package/dist/session/panel/session-diff-viewer.js +1 -1
  141. package/dist/session/panel/session-files-explorer.js +1 -1
  142. package/dist/session/panel/session-files-panel.js +3 -3
  143. package/dist/session/panel/shared/action-navigator.js +1 -1
  144. package/dist/session/status/provisioning-failure.d.ts +4 -4
  145. package/dist/session/status/provisioning-failure.js +4 -4
  146. package/dist/session/status/session-busy-indicator.js +1 -1
  147. package/dist/session/status/session-error-banner.js +6 -1
  148. package/dist/session/thread/mention-chip.d.ts +1 -1
  149. package/dist/session/thread/mention-segments.d.ts +4 -2
  150. package/dist/session/thread/mention-segments.js +28 -1
  151. package/dist/session/thread/message-parsing.d.ts +11 -0
  152. package/dist/session/thread/message-parsing.js +22 -3
  153. package/dist/session/thread/optimistic-turn.d.ts +4 -2
  154. package/dist/session/thread/optimistic-turn.js +13 -11
  155. package/dist/session/thread/session-chat.js +6 -1
  156. package/dist/session/thread/session-context-message-explorer.js +1 -1
  157. package/dist/session/thread/session-older-autoload.d.ts +2 -3
  158. package/dist/session/thread/session-older-autoload.js +2 -3
  159. package/dist/session/thread/transcript.js +8 -10
  160. package/dist/session/tool/shared/error-and-connector.js +1 -1
  161. package/dist/session/tool/shared/file-list.js +2 -2
  162. package/dist/session/tool/shared/infrastructure-parts.js +1 -1
  163. package/dist/session/tool/shared/infrastructure-preview.js +1 -1
  164. package/dist/session/tool/shared/infrastructure-row-header.js +3 -3
  165. package/dist/session/tool/shared/infrastructure-rows.js +2 -2
  166. package/dist/session/tool/shared/output-block.js +4 -4
  167. package/dist/session/tool/shared/session-helpers.js +3 -3
  168. package/dist/session/tool/shared/structured-output.js +3 -3
  169. package/dist/session/tool/shared/todo-helpers.js +1 -1
  170. package/dist/session/tool/tool-error.js +2 -2
  171. package/dist/session/tool/tools/agent-spawn-tool.js +3 -3
  172. package/dist/session/tool/tools/agent-status-tool.js +1 -1
  173. package/dist/session/tool/tools/apply-patch-tool.js +1 -1
  174. package/dist/session/tool/tools/connector-get-tool.js +1 -1
  175. package/dist/session/tool/tools/connector-list-tool.js +1 -1
  176. package/dist/session/tool/tools/connector-tools.js +1 -1
  177. package/dist/session/tool/tools/edit-tool.js +1 -1
  178. package/dist/session/tool/tools/get-mem-tool.js +1 -1
  179. package/dist/session/tool/tools/glob-tool.js +1 -1
  180. package/dist/session/tool/tools/image-search-tool.js +1 -1
  181. package/dist/session/tool/tools/memory-search-tool.js +1 -1
  182. package/dist/session/tool/tools/memory-tool.js +4 -4
  183. package/dist/session/tool/tools/presentation-gen-tool.js +2 -2
  184. package/dist/session/tool/tools/project-delete-tool.js +1 -1
  185. package/dist/session/tool/tools/project-list-tool.js +1 -1
  186. package/dist/session/tool/tools/pty-read-tool.js +1 -1
  187. package/dist/session/tool/tools/pty-spawn-tool.js +1 -1
  188. package/dist/session/tool/tools/pty-write-tool.js +1 -1
  189. package/dist/session/tool/tools/read-tool.js +1 -1
  190. package/dist/session/tool/tools/removed-connector-tool.js +1 -1
  191. package/dist/session/tool/tools/scrape-webpage-tool.js +1 -1
  192. package/dist/session/tool/tools/session-get-tool.js +3 -3
  193. package/dist/session/tool/tools/session-list-background-tool.js +1 -1
  194. package/dist/session/tool/tools/session-read-tool.js +1 -1
  195. package/dist/session/tool/tools/session-search-tool.js +1 -1
  196. package/dist/session/tool/tools/session-spawn-tool.js +1 -1
  197. package/dist/session/tool/tools/skill-tool.js +1 -1
  198. package/dist/session/tool/tools/todo-write-tool.js +1 -1
  199. package/dist/session/tool/tools/web-fetch-tool.js +1 -1
  200. package/dist/session/tool/tools/write-tool.js +1 -1
  201. package/dist/session/turn/activity-file-chips.js +7 -3
  202. package/dist/session/turn/activity-step.js +1 -1
  203. package/dist/session/turn/burst-summary-trigger.js +3 -3
  204. package/dist/session/turn/chain-step-trigger.js +1 -1
  205. package/dist/session/turn/plan-card.js +1 -1
  206. package/dist/session/turn/thought-chain-step.js +1 -1
  207. package/dist/session/turn/turn-work-accordion.js +1 -1
  208. package/dist/session/turn/user-message.js +13 -6
  209. package/dist/session/voice/use-call-card-position.d.ts +30 -0
  210. package/dist/session/voice/use-call-card-position.js +126 -0
  211. package/dist/session/voice/voice-call-card.js +10 -3
  212. package/dist/styles/theme.css +12 -0
  213. package/dist/styles/tokens.css +12 -6
  214. package/dist/styles.css +1 -1
  215. package/dist/terminal/session-terminal-panel.js +1 -1
  216. package/dist/test-utils/intl.d.ts +131 -8
  217. package/dist/workspace/admin/project-admin-dashboard.js +7 -24
  218. package/dist/workspace/calendar/calendar-page.js +1 -1
  219. package/dist/workspace/home/first-chat.d.ts +4 -3
  220. package/dist/workspace/home/first-chat.js +6 -6
  221. package/dist/workspace/home/welcome-body.js +2 -2
  222. package/dist/workspace/index.d.ts +1 -1
  223. package/dist/workspace/index.js +1 -1
  224. package/dist/workspace/layout/project-home.js +9 -3
  225. package/dist/workspace/layout/use-project-home-send.d.ts +3 -1
  226. package/dist/workspace/layout/use-project-home-send.js +6 -2
  227. package/dist/workspace/memory/company-memory-page.js +2 -4
  228. package/dist/workspace/new/github-source.js +0 -1
  229. package/dist/workspace/new/new-workspace-form.d.ts +0 -1
  230. package/dist/workspace/new/new-workspace-form.js +0 -3
  231. package/dist/workspace/new/use-create-workspace.d.ts +1 -1
  232. package/dist/workspace/new/use-create-workspace.js +1 -2
  233. package/dist/workspace/session-spaces/space-detail-page.d.ts +35 -0
  234. package/dist/workspace/session-spaces/space-detail-page.js +307 -0
  235. package/dist/workspace/session-spaces/space-form-modal.d.ts +16 -0
  236. package/dist/workspace/session-spaces/space-form-modal.js +92 -0
  237. package/dist/workspace/session-spaces/space-icon.d.ts +36 -0
  238. package/dist/workspace/session-spaces/space-icon.js +52 -0
  239. package/dist/workspace/session-spaces/space-people.d.ts +51 -0
  240. package/dist/workspace/session-spaces/space-people.js +91 -0
  241. package/dist/workspace/session-spaces/space-picker.d.ts +11 -0
  242. package/dist/workspace/session-spaces/space-picker.js +42 -0
  243. package/dist/workspace/session-spaces/space-share-modal.d.ts +14 -0
  244. package/dist/workspace/session-spaces/space-share-modal.js +93 -0
  245. package/dist/workspace/session-spaces/spaces-page.d.ts +8 -0
  246. package/dist/workspace/session-spaces/spaces-page.js +125 -0
  247. package/dist/workspace/sessions/session-owner-filters.d.ts +2 -0
  248. package/dist/workspace/sessions/session-owner-filters.js +2 -0
  249. package/dist/workspace/sidebar/footer/project-artifacts-nav.js +1 -1
  250. package/dist/workspace/sidebar/footer/project-promo-cards.d.ts +7 -2
  251. package/dist/workspace/sidebar/footer/project-promo-cards.js +4 -3
  252. package/dist/workspace/sidebar/footer/project-sandbox-alert.js +1 -1
  253. package/dist/workspace/sidebar/footer/promo-card.d.ts +10 -1
  254. package/dist/workspace/sidebar/footer/promo-card.js +31 -2
  255. package/dist/workspace/sidebar/modal/session-people-picker.d.ts +13 -0
  256. package/dist/workspace/sidebar/modal/session-people-picker.js +72 -0
  257. package/dist/workspace/sidebar/modal/share-session-modal.js +2 -1
  258. package/dist/workspace/sidebar/project-nav-items.d.ts +1 -3
  259. package/dist/workspace/sidebar/project-nav-items.js +3 -8
  260. package/dist/workspace/sidebar/project-session-list.js +19 -12
  261. package/dist/workspace/sidebar/project-sidebar.js +13 -13
  262. package/dist/workspace/sidebar/project-spaces-nav.js +1 -2
  263. package/dist/workspace/sidebar/session-filter-menu.js +19 -13
  264. package/dist/workspace/sidebar/session-group-sections.d.ts +12 -12
  265. package/dist/workspace/sidebar/session-group-sections.js +56 -75
  266. package/dist/workspace/sidebar/sidebar-more-group.js +1 -1
  267. package/dist/workspace/sidebar/workspace-settings-sidebar-nav.js +2 -2
  268. package/dist/workspace/spaces/space-tabs.d.ts +26 -6
  269. package/dist/workspace/spaces/space-tabs.js +19 -8
  270. package/package.json +27 -31
  271. package/skills/kortix-ui/references/modules.md +2 -2
  272. package/dist/workspace/new/clone-param.d.ts +0 -11
  273. package/dist/workspace/new/clone-param.js +0 -15
  274. package/dist/workspace/new/provision-new-workspace.d.ts +0 -14
  275. package/dist/workspace/new/provision-new-workspace.js +0 -14
  276. package/dist/workspace/sidebar/footer/project-inbox-nav.d.ts +0 -8
  277. package/dist/workspace/sidebar/footer/project-inbox-nav.js +0 -29
@@ -228,7 +228,7 @@ export function SessionTerminalPanel({ sessionId, projectId, projectSessionId, h
228
228
  content = (_jsx(ErrorState, { size: "sm", title: tI18nHardcoded.raw('i18nComplete.text5c1fff90cce6'), description: tI18nHardcoded.raw('i18nComplete.texta06dbdcd0f3d'), action: _jsx(Button, { variant: "outline", size: "sm", onClick: retryAfterFailure, children: tI18nHardcoded.raw('i18nComplete.text942087cc2d41') }), className: "h-full" }));
229
229
  }
230
230
  else if (panelState === 'empty') {
231
- content = (_jsxs("div", { className: "flex h-full w-full flex-col items-center justify-center gap-3", children: [_jsx(Terminal, { className: "text-muted-foreground/30 size-8" }), _jsxs(Button, { variant: "outline", size: "sm", onClick: ensurePty, className: "gap-1.5", children: [_jsx(Plus, { className: "size-3.5" }), tI18nHardcoded.raw('autoFeaturesSessionSessionTerminalPanelJsxTextNewTerminaleeb6bbb9')] })] }));
231
+ content = (_jsxs("div", { className: "flex h-full w-full flex-col items-center justify-center gap-3", children: [_jsx(Terminal, { className: "text-muted-foreground size-8" }), _jsxs(Button, { variant: "outline", size: "sm", onClick: ensurePty, className: "gap-1.5", children: [_jsx(Plus, { className: "size-3.5" }), tI18nHardcoded.raw('autoFeaturesSessionSessionTerminalPanelJsxTextNewTerminaleeb6bbb9')] })] }));
232
232
  }
233
233
  else if (pty) {
234
234
  content = (_jsx(PtyTerminal, { pty: pty, serverUrl: serverUrl, hidden: hidden, onUnavailable: handleUnavailable, className: "absolute inset-0 h-full w-full" }));
@@ -114,6 +114,7 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
114
114
  savedVerified: string;
115
115
  savedInvalid: string;
116
116
  checkError: string;
117
+ keyRejected: string;
117
118
  openProviderInModels: string;
118
119
  member: string;
119
120
  members: string;
@@ -251,7 +252,6 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
251
252
  registering: string;
252
253
  seeding: string;
253
254
  };
254
- templateSeed: string;
255
255
  account: {
256
256
  label: string;
257
257
  createIn: string;
@@ -801,10 +801,6 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
801
801
  permission: string;
802
802
  updateFailed: string;
803
803
  flags: {
804
- marketplace: {
805
- name: string;
806
- description: string;
807
- };
808
804
  secrets_egress: {
809
805
  name: string;
810
806
  description: string;
@@ -1303,6 +1299,7 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
1303
1299
  };
1304
1300
  ownerAccess: string;
1305
1301
  labels: string;
1302
+ members: string;
1306
1303
  };
1307
1304
  loadingMore: string;
1308
1305
  loadMoreSessions: string;
@@ -1386,6 +1383,11 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
1386
1383
  moveFailed: string;
1387
1384
  empty: string;
1388
1385
  groupOptions: string;
1386
+ openSpace: string;
1387
+ showSessions: string;
1388
+ hideSessions: string;
1389
+ heading: string;
1390
+ allSpaces: string;
1389
1391
  };
1390
1392
  recentlyDeleted: {
1391
1393
  view: string;
@@ -1587,6 +1589,8 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
1587
1589
  toUse: string;
1588
1590
  use: string;
1589
1591
  noOneMatches: string;
1592
+ drive: string;
1593
+ driveSearchFailed: string;
1590
1594
  };
1591
1595
  history: {
1592
1596
  restoreTitle: string;
@@ -2776,6 +2780,8 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
2776
2780
  tooLarge: string;
2777
2781
  expired: string;
2778
2782
  checkConnection: string;
2783
+ driveFileUnavailable: string;
2784
+ driveFilePending: string;
2779
2785
  };
2780
2786
  i18nComplete: {
2781
2787
  noModelAddProviderKey: string;
@@ -3838,7 +3844,6 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
3838
3844
  text5a41803b2dd1: string;
3839
3845
  text5a517d8378f5: string;
3840
3846
  text5a5735e88fae: string;
3841
- text5a7b24722fae: string;
3842
3847
  text5a9622af8882: string;
3843
3848
  text5aa40906d187: string;
3844
3849
  text5aaf2a8498fd: string;
@@ -4267,7 +4272,6 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
4267
4272
  text7ecec93ed268: string;
4268
4273
  text7ed62f13532a: string;
4269
4274
  text7ed6733a3900: string;
4270
- text7eebc3924618: string;
4271
4275
  text7eeffb726e71: string;
4272
4276
  text7f619d9e30a8: string;
4273
4277
  text7f619ff13aa8: string;
@@ -5124,7 +5128,6 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
5124
5128
  textc58e371231b7: string;
5125
5129
  textc5a9e0731890: string;
5126
5130
  textc5bb9fda9711: string;
5127
- textc608981d8d68: string;
5128
5131
  textc6092ea6beec: string;
5129
5132
  textc614ae8886f0: string;
5130
5133
  textc616e8ff6ba3: string;
@@ -8782,6 +8785,7 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
8782
8785
  };
8783
8786
  sessionChangeRequests: {
8784
8787
  title: string;
8788
+ openError: string;
8785
8789
  open: string;
8786
8790
  jump: string;
8787
8791
  unavailable: string;
@@ -10640,6 +10644,125 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
10640
10644
  bannerTitle: string;
10641
10645
  bannerDismiss: string;
10642
10646
  };
10647
+ sessionSpaces: {
10648
+ title: string;
10649
+ description: string;
10650
+ newSpace: string;
10651
+ searchPlaceholder: string;
10652
+ emptyTitle: string;
10653
+ emptyDescription: string;
10654
+ noResultsTitle: string;
10655
+ noResultsDescription: string;
10656
+ loadFailed: string;
10657
+ tryAgain: string;
10658
+ createTitle: string;
10659
+ editTitle: string;
10660
+ nameLabel: string;
10661
+ namePlaceholder: string;
10662
+ descriptionLabel: string;
10663
+ descriptionPlaceholder: string;
10664
+ create: string;
10665
+ save: string;
10666
+ cancel: string;
10667
+ created: string;
10668
+ saved: string;
10669
+ createFailed: string;
10670
+ saveFailed: string;
10671
+ iconSaveFailed: string;
10672
+ createdSpace: string;
10673
+ nameTaken: string;
10674
+ limit: string;
10675
+ delete: string;
10676
+ deleteTitle: string;
10677
+ deleteDescription: string;
10678
+ deleted: string;
10679
+ deleteFailed: string;
10680
+ options: string;
10681
+ composerPlaceholder: string;
10682
+ sessionsHeading: string;
10683
+ sessionsEmptyTitle: string;
10684
+ sessionsEmptyDescription: string;
10685
+ sessionsLoadFailed: string;
10686
+ visibility: string;
10687
+ notFoundTitle: string;
10688
+ notFoundDescription: string;
10689
+ allSpaces: string;
10690
+ picker: string;
10691
+ pickerNone: string;
10692
+ pickerSearch: string;
10693
+ pickerEmpty: string;
10694
+ gateDescription: string;
10695
+ loadMore: string;
10696
+ share: string;
10697
+ shareTitle: string;
10698
+ shareDescription: string;
10699
+ shareEveryone: string;
10700
+ shareSearch: string;
10701
+ shared: string;
10702
+ shareFailed: string;
10703
+ shareNotMember: string;
10704
+ sharedWith: string;
10705
+ private: string;
10706
+ tabHome: string;
10707
+ tabFiles: string;
10708
+ editDetails: string;
10709
+ everyone: string;
10710
+ searchSessions: string;
10711
+ noSessionsMatch: string;
10712
+ noDescription: string;
10713
+ sessionCount: string;
10714
+ activeAgo: string;
10715
+ onlyYou: string;
10716
+ about: string;
10717
+ edit: string;
10718
+ people: string;
10719
+ openFiles: string;
10720
+ filesEmpty: string;
10721
+ peopleCount: string;
10722
+ morePeople: string;
10723
+ moreFiles: string;
10724
+ today: string;
10725
+ yesterday: string;
10726
+ thisWeek: string;
10727
+ earlier: string;
10728
+ shareAddPlaceholder: string;
10729
+ sharePeopleWithAccess: string;
10730
+ shareOwner: string;
10731
+ shareRemove: string;
10732
+ shareGeneralAccess: string;
10733
+ shareRestricted: string;
10734
+ shareRestrictedHint: string;
10735
+ shareEveryoneHint: string;
10736
+ copyLink: string;
10737
+ linkCopied: string;
10738
+ linkCopyFailed: string;
10739
+ shareRemoveTitle: string;
10740
+ shareRemoveDescription: string;
10741
+ roleMember: string;
10742
+ shareChange: string;
10743
+ spaceMember: string;
10744
+ workspaceOwner: string;
10745
+ workspaceAdmin: string;
10746
+ addedOn: string;
10747
+ sortBy: string;
10748
+ sortActivity: string;
10749
+ sortName: string;
10750
+ sortCreated: string;
10751
+ yourSpaces: string;
10752
+ sharedWithYou: string;
10753
+ sharedShort: string;
10754
+ };
10755
+ sessionShare: {
10756
+ addPlaceholder: string;
10757
+ peopleWithAccess: string;
10758
+ owner: string;
10759
+ member: string;
10760
+ group: string;
10761
+ groupMembers: string;
10762
+ remove: string;
10763
+ share: string;
10764
+ notMember: string;
10765
+ };
10643
10766
  }, "hardcodedUi.i18nComplete">;
10644
10767
  export declare function IntlTestProvider({ children, locale, timeZone, messages, fallback, ...rest }: Partial<IntlConfig> & {
10645
10768
  children: ReactNode;
@@ -52,7 +52,7 @@ import { AccountHubSheetProvider } from '../../internal/account-hub/hub-sheet.js
52
52
  import { useAccountHubAccess } from '../../internal/account-hub/use-account-hub-access.js';
53
53
  import { useAccountsList } from '../../internal/hooks/account/use-accounts-list.js';
54
54
  import { useIsMobile } from '../../internal/hooks/index.js';
55
- import { RAIL_HORIZONTAL_ROW_CLASS, RAIL_ROW_CLASS, RailGroup, SETTINGS_SIDEBAR_WIDTH_PX, } from '../../internal/components/nav-rail.js';
55
+ import { RAIL_HORIZONTAL_ROW_CLASS } from '../../internal/components/nav-rail.js';
56
56
  import { adminResourceRowOpen, capabilityAccess } from '../../internal/layout/project-settings-nav.js';
57
57
  import { SettingsNavProvider } from '../../internal/layout/settings-nav-context.js';
58
58
  import { withStaleChunkRecovery } from '../../internal/lib/chunk-reload.js';
@@ -288,8 +288,6 @@ export function ProjectAdminDashboard({ projectId, section, content, hostSection
288
288
  captureOn,
289
289
  accountId,
290
290
  ]);
291
- // The rail's footer: the Support group (Help), drawn under the groups.
292
- const footerRows = groups.find((group) => group.id === RAIL_FOOTER_GROUP)?.rows ?? [];
293
291
  // The sections of this page; a link-out row (Capture) is never active.
294
292
  const rows = groups.flatMap((group) => group.rows).filter((row) => !row.href);
295
293
  const linkOut = groups.flatMap((group) => group.rows).find((row) => row.href && row.key === section);
@@ -344,9 +342,9 @@ export function ProjectAdminDashboard({ projectId, section, content, hostSection
344
342
  strip.scrollLeft += tabBox.left - stripBox.left - (stripBox.width - tabBox.width) / 2;
345
343
  }, [isMobile, settled, active]);
346
344
  // Publish the rail: the project sidebar drills into it (Back, then these
347
- // groups), so on the desktop the rail lives there and not in this page.
345
+ // groups). On the desktop the rail lives only there, open or closed with
346
+ // the sidebar: the page never draws a second one.
348
347
  const setRail = useWorkspaceSettingsRailStore((s) => s.setRail);
349
- const railInSidebar = useWorkspaceSettingsRailStore((s) => s.sidebarDocked) && !isMobile;
350
348
  const accessCheckFailed = canAdmin?.isError === true;
351
349
  useEffect(() => {
352
350
  // The gate probe failed: publish no rows, so the sidebar shows Back
@@ -413,13 +411,9 @@ export function ProjectAdminDashboard({ projectId, section, content, hostSection
413
411
  // The account half of a project section (General, Git repo).
414
412
  const GeneralExtras = hostSections.generalExtras;
415
413
  const companionPane = active === 'general' && GeneralExtras && accountId && isAccountMember ? (_jsx(GeneralExtras, { projectId: projectId, accountId: accountId })) : AccountPage && accountTab && accountId ? (_jsx(EmbeddedAccountHubProvider, { value: { accountId, tab: accountTab }, children: _jsx(AccountPage, { projectId: projectId, accountId: accountId, tab: accountTab, companion: true }) })) : null;
416
- return (_jsx(SettingsNavProvider, { value: settingsNav, children: _jsxs("div", { className: cn('min-h-0 flex-1 overflow-hidden', isMobile || railInSidebar ? 'flex flex-col' : 'grid'),
417
- // The Settings page's rail width, so the two settings surfaces are one shape.
418
- style: isMobile || railInSidebar ? undefined : { gridTemplateColumns: `${SETTINGS_SIDEBAR_WIDTH_PX}px 1fr` }, children: [railInSidebar ? null : isMobile ? (
414
+ return (_jsx(SettingsNavProvider, { value: settingsNav, children: _jsxs("div", { className: "flex min-h-0 flex-1 flex-col overflow-hidden", children: [isMobile ? (
419
415
  // The frame's title bar names the panel; this row is the rail only.
420
- _jsx("nav", { "aria-label": title, className: "border-border/60 bg-background flex shrink-0 flex-col border-b", children: _jsx(FadedScrollArea, { ref: stripRef, orientation: "horizontal", fadeColor: "from-background", className: "min-w-0 flex-1 py-2", children: settled ? (_jsx("div", { className: "flex w-fit items-center gap-2", children: _jsx(Tabs, { value: active, className: "w-fit", children: _jsx(TabsList, { orientation: "horizontal", className: "w-fit", children: groups.flatMap((group) => group.rows).map((row) => (_jsx(RailTrigger, { projectId: projectId, row: row, horizontal: true }, row.key))) }) }) })) : (_jsx(Skeleton, { className: "mx-3 h-7 w-64 rounded-md" })) }) })) : (_jsxs("aside", { className: "flex min-h-0 flex-col border-r bg-inherit", children: [_jsx("nav", { "aria-label": title, className: "flex min-h-0 flex-1 [scrollbar-width:none] flex-col gap-4 overflow-y-auto px-2 pt-4 pb-2 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", children: settled ? (_jsx(Tabs, { value: active, orientation: "vertical", className: "gap-4", children: groups
421
- .filter((group) => group.id !== RAIL_FOOTER_GROUP)
422
- .map((group) => (_jsx(RailGroup, { label: tSettings(`groups.${group.id}`), children: group.rows.map((row) => (_jsx(RailTrigger, { projectId: projectId, row: row }, row.key))) }, group.id))) })) : (_jsx(RailSkeleton, {})) }), settled && footerRows.length > 0 ? (_jsx("div", { className: "border-border/60 shrink-0 border-t px-2 py-2", children: _jsx(Tabs, { value: active, orientation: "vertical", children: _jsx(RailGroup, { children: footerRows.map((row) => (_jsx(RailTrigger, { projectId: projectId, row: row }, row.key))) }) }) })) : null] })), _jsx("main", { ref: mainRef, className: "bg-background flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden", children: settled && active && activeRow && (ProjectPage || AccountPage) ? (
416
+ _jsx("nav", { "aria-label": title, className: "border-border/60 bg-background flex shrink-0 flex-col border-b", children: _jsx(FadedScrollArea, { ref: stripRef, orientation: "horizontal", fadeColor: "from-background", className: "min-w-0 flex-1 py-2", children: settled ? (_jsx("div", { className: "flex w-fit items-center gap-2", children: _jsx(Tabs, { value: active, className: "w-fit", children: _jsx(TabsList, { orientation: "horizontal", className: "w-fit", children: groups.flatMap((group) => group.rows).map((row) => (_jsx(RailTrigger, { projectId: projectId, row: row }, row.key))) }) }) })) : (_jsx(Skeleton, { className: "mx-3 h-7 w-64 rounded-md" })) }) })) : null, _jsx("main", { ref: mainRef, className: "bg-background flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden", children: settled && active && activeRow && (ProjectPage || AccountPage) ? (
423
417
  // Every page header in the pane reads its title from the rail row,
424
418
  // so the page is named exactly like the row that opened it. A page
425
419
  // below a section (a connector) names itself.
@@ -431,20 +425,9 @@ export function ProjectAdminDashboard({ projectId, section, content, hostSection
431
425
  }
432
426
  /* ------------------------------------------------------------------ rail */
433
427
  /** One row: a real link inside the trigger, since the section is URL state. */
434
- function RailTrigger({ projectId, row, horizontal = false, }) {
428
+ function RailTrigger({ projectId, row, }) {
435
429
  const Glyph = row.icon;
436
- return (_jsx(TabsTrigger, { value: row.key, asChild: true, size: horizontal ? undefined : 'md', className: horizontal ? RAIL_HORIZONTAL_ROW_CLASS : RAIL_ROW_CLASS, children: _jsxs(Link, { href: row.href ?? projectAdminHref(projectId, row.key), prefetch: true, children: [_jsx(Glyph, { className: "size-4 shrink-0" }), _jsx("span", { className: cn(!horizontal && 'truncate'), children: row.label })] }) }));
437
- }
438
- /** The loaded rail's shape: five labelled groups of icon + label rows. */
439
- const RAIL_SKELETON_GROUPS = [
440
- ['w-16', 'w-16', 'w-20', 'w-10', 'w-16', 'w-20', 'w-16'],
441
- ['w-20', 'w-14', 'w-12', 'w-12', 'w-16', 'w-14', 'w-20'],
442
- ['w-16', 'w-14', 'w-12', 'w-16', 'w-16'],
443
- ['w-10', 'w-12'],
444
- ['w-10'],
445
- ];
446
- function RailSkeleton() {
447
- return (_jsx("div", { className: "space-y-4", "aria-hidden": true, children: RAIL_SKELETON_GROUPS.map((group, g) => (_jsxs("div", { className: "space-y-1", children: [_jsx(Skeleton, { className: "mx-2.5 my-2 h-3 w-20 rounded-sm" }), group.map((width, i) => (_jsxs("div", { className: "flex h-8 items-center gap-2 px-2.5", children: [_jsx(Skeleton, { className: "size-4 shrink-0 rounded-sm" }), _jsx(Skeleton, { className: cn('h-3.5 rounded-sm', width) })] }, i)))] }, g))) }));
430
+ return (_jsx(TabsTrigger, { value: row.key, asChild: true, className: RAIL_HORIZONTAL_ROW_CLASS, children: _jsxs(Link, { href: row.href ?? projectAdminHref(projectId, row.key), prefetch: true, children: [_jsx(Glyph, { className: "size-4 shrink-0" }), _jsx("span", { children: row.label })] }) }));
448
431
  }
449
432
  /* ----------------------------------------------------------------- states */
450
433
  function AdminAccessDenied({ projectId }) {
@@ -128,7 +128,7 @@ export function CalendarPage({ projectId }) {
128
128
  setMode('week');
129
129
  setAnchor(weekStart(parseDayKey(day)));
130
130
  });
131
- return (_jsxs("div", { className: "flex h-svh flex-col overflow-hidden", children: [_jsx(ProjectPageHeader, { title: t('title'), children: _jsxs(Button, { size: "sm", variant: "outline", className: "gap-1.5", onClick: () => setCreating((c) => ({ open: true, day: null, n: c.n + 1 })), children: [_jsx(PlusIcon, { className: "size-3.5 shrink-0", "aria-hidden": true }), t('newItem')] }) }), _jsxs(SplitSheet, { size: "lg", open: selection !== null && (selection.kind === 'item' || openFire !== null), onOpenChange: (open) => !open && close(), className: "min-h-0 flex-1", children: [_jsxs(SplitSheetMain, { className: "flex min-h-0 flex-col", children: [_jsxs("div", { className: "flex shrink-0 flex-wrap items-center gap-2 px-4 py-3 md:px-6", children: [_jsx("h2", { className: "text-foreground mr-1 text-base font-medium tabular-nums", children: label }), _jsxs("div", { className: "flex items-center gap-1", children: [_jsx(Hint, { label: mode === 'week' ? t('previousWeek') : t('previousMonth'), children: _jsx(Button, { variant: "ghost", size: "icon-sm", "aria-label": mode === 'week' ? t('previousWeek') : t('previousMonth'), onClick: () => step(-1), children: _jsx(CaretLeftIcon, { className: "size-4" }) }) }), _jsx(Button, { variant: "outline", size: "xs", onClick: goToday, children: t('today') }), _jsx(Hint, { label: mode === 'week' ? t('nextWeek') : t('nextMonth'), children: _jsx(Button, { variant: "ghost", size: "icon-sm", "aria-label": mode === 'week' ? t('nextWeek') : t('nextMonth'), onClick: () => step(1), children: _jsx(CaretRightIcon, { className: "size-4" }) }) })] }), _jsxs("div", { className: "ml-auto flex flex-wrap items-center gap-1", children: [_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs(Button, { variant: "ghost", size: "xs", className: "gap-1.5", children: [_jsx(FilterGlyph, { filter: filter, viewerId: viewerId, directory: directory }), filterLabel, _jsx(CaretDownIcon, { className: "size-3", "aria-hidden": true })] }) }), _jsx(DropdownMenuContent, { align: "end", className: "max-h-80 w-56 overflow-y-auto", children: _jsxs(DropdownMenuRadioGroup, { value: filter, onValueChange: (value) => setFilter(String(value)), children: [_jsxs(DropdownMenuRadioItem, { value: "all", children: [_jsx(FilterGlyph, { filter: "all", viewerId: viewerId, directory: directory }), t('filter.everyone')] }), viewerId ? (_jsxs(DropdownMenuRadioItem, { value: "me", children: [_jsx(FilterGlyph, { filter: "me", viewerId: viewerId, directory: directory }), t('filter.me')] })) : null, directory.people.length > 0 ? (_jsxs(_Fragment, { children: [_jsx(DropdownMenuSeparator, {}), _jsx(DropdownMenuLabel, { children: t('people') }), directory.people
131
+ return (_jsxs("div", { className: "flex h-svh flex-col overflow-hidden", children: [_jsx(ProjectPageHeader, { title: t('title'), children: _jsxs(Button, { size: "sm", className: "gap-1.5", onClick: () => setCreating((c) => ({ open: true, day: null, n: c.n + 1 })), children: [_jsx(PlusIcon, { className: "size-3.5 shrink-0", "aria-hidden": true }), t('newItem')] }) }), _jsxs(SplitSheet, { size: "lg", open: selection !== null && (selection.kind === 'item' || openFire !== null), onOpenChange: (open) => !open && close(), className: "min-h-0 flex-1", children: [_jsxs(SplitSheetMain, { className: "flex min-h-0 flex-col", children: [_jsxs("div", { className: "flex shrink-0 flex-wrap items-center gap-2 px-4 py-3 md:px-6", children: [_jsx("h2", { className: "text-foreground mr-1 text-base font-medium tabular-nums", children: label }), _jsxs("div", { className: "flex items-center gap-1", children: [_jsx(Hint, { label: mode === 'week' ? t('previousWeek') : t('previousMonth'), children: _jsx(Button, { variant: "ghost", size: "icon-sm", "aria-label": mode === 'week' ? t('previousWeek') : t('previousMonth'), onClick: () => step(-1), children: _jsx(CaretLeftIcon, { className: "size-4" }) }) }), _jsx(Button, { variant: "outline", size: "xs", onClick: goToday, children: t('today') }), _jsx(Hint, { label: mode === 'week' ? t('nextWeek') : t('nextMonth'), children: _jsx(Button, { variant: "ghost", size: "icon-sm", "aria-label": mode === 'week' ? t('nextWeek') : t('nextMonth'), onClick: () => step(1), children: _jsx(CaretRightIcon, { className: "size-4" }) }) })] }), _jsxs("div", { className: "ml-auto flex flex-wrap items-center gap-1", children: [_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs(Button, { variant: "ghost", size: "xs", className: "gap-1.5", children: [_jsx(FilterGlyph, { filter: filter, viewerId: viewerId, directory: directory }), filterLabel, _jsx(CaretDownIcon, { className: "size-3", "aria-hidden": true })] }) }), _jsx(DropdownMenuContent, { align: "end", className: "max-h-80 w-56 overflow-y-auto", children: _jsxs(DropdownMenuRadioGroup, { value: filter, onValueChange: (value) => setFilter(String(value)), children: [_jsxs(DropdownMenuRadioItem, { value: "all", children: [_jsx(FilterGlyph, { filter: "all", viewerId: viewerId, directory: directory }), t('filter.everyone')] }), viewerId ? (_jsxs(DropdownMenuRadioItem, { value: "me", children: [_jsx(FilterGlyph, { filter: "me", viewerId: viewerId, directory: directory }), t('filter.me')] })) : null, directory.people.length > 0 ? (_jsxs(_Fragment, { children: [_jsx(DropdownMenuSeparator, {}), _jsx(DropdownMenuLabel, { children: t('people') }), directory.people
132
132
  .filter((person) => person.user_id !== viewerId)
133
133
  .map((person) => (_jsxs(DropdownMenuRadioItem, { value: `user:${person.user_id}`, children: [_jsx(FilterGlyph, { filter: `user:${person.user_id}`, viewerId: viewerId, directory: directory }), _jsx("span", { className: "truncate", children: personName(person, person.handle) })] }, person.user_id)))] })) : null, directory.agents.length > 0 ? (_jsxs(_Fragment, { children: [_jsx(DropdownMenuSeparator, {}), _jsx(DropdownMenuLabel, { children: t('agents') }), directory.agents.map((agent) => (_jsxs(DropdownMenuRadioItem, { value: `agent:${agent}`, children: [_jsx(FilterGlyph, { filter: `agent:${agent}`, viewerId: viewerId, directory: directory }), _jsx("span", { className: "truncate", children: agentDisplayName(agent) })] }, agent)))] })) : null] }) })] }), _jsx(Tabs, { value: mode, onValueChange: (value) => switchMode(value), children: _jsxs(TabsList, { size: "xs", "aria-label": t('view'), children: [_jsx(TabsTrigger, { value: "week", children: t('week') }), _jsx(TabsTrigger, { value: "month", children: t('month') })] }) })] })] }), _jsx("div", { className: cn('min-h-0 flex-1 overflow-y-auto', mode === 'month' && 'border-border border-t'), children: items.isPending && !items.data ? (_jsx("div", { className: "flex flex-col gap-3 px-4 py-3 md:px-6", children: Array.from({ length: 5 }, (_, i) => (_jsx(Skeleton, { className: "h-20 w-full rounded-md" }, i))) })) : items.isError && !items.data ? (_jsx("div", { className: "px-4 py-6 md:px-6", children: _jsx(ErrorState, { size: "sm", title: t('loadFailed'), action: _jsx(Button, { variant: "outline", size: "sm", onClick: () => void items.refetch(), children: t('tryAgain') }) }) })) : mode === 'week' ? (_jsx(WeekView, { start: range.from, items: shownItems, fires: fires, directory: directory, selection: selection, now: now, onOpenItem: openItem, onOpenFire: openFireEntry, onMove: move, onAdd: (day) => setCreating((c) => ({ open: true, day, n: c.n + 1 })) })) : (_jsx(MonthView, { anchor: anchor, items: shownItems.filter((item) => itemDayKey(item) !== null), fires: fires, directory: directory, selection: selection, now: now, onOpenItem: openItem, onOpenFire: openFireEntry, onMove: move, onAdd: (day) => setCreating((c) => ({ open: true, day, n: c.n + 1 })), onShowDay: (day) => {
134
134
  setMode('week');
@@ -19,9 +19,10 @@ import { type ReactNode } from 'react';
19
19
  * inviting the items describe.
20
20
  *
21
21
  * The "Connect ChatGPT" and "Connect Claude" tiles sit directly above the
22
- * composer (`ModelConnectionLayoutContext`): with no model they are the
23
- * composer's own `ModelConnectionBar`, with a model they are the dismissible
24
- * `SubscriptionOffer`. Every other composer keeps them below.
22
+ * composer (`ModelConnectionLayoutContext`). The composer's `ModelConnectionBar`
23
+ * owns them: with no model the undismissible rows, with a model the
24
+ * dismissible `SubscriptionOffer` (`SubscriptionOfferContext`). Every other
25
+ * composer keeps them below.
25
26
  *
26
27
  * The welcome fades in once, over 300ms. It is opacity only, so reduced motion
27
28
  * needs no other variant.
@@ -3,8 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { AppWindowIcon, BriefcaseIcon, ChatsCircleIcon, ClockIcon, GrainsIcon, PlugsConnectedIcon, } from '@phosphor-icons/react';
4
4
  import { useId } from 'react';
5
5
  import { useUiViewer } from '../../providers/ui-provider.js';
6
- import { ModelConnectionLayoutContext } from '../../session/models/model-connection-layout.js';
7
- import { SubscriptionOffer } from '../../session/models/subscription-offer.js';
6
+ import { ModelConnectionLayoutContext, SubscriptionOfferContext, } from '../../session/models/model-connection-layout.js';
8
7
  import { SESSION_TRANSCRIPT_CLASS } from '../../session/thread/session-transcript-class.js';
9
8
  import { useTranslations } from '../../i18n/index.js';
10
9
  import { cn } from '../../internal/lib/utils.js';
@@ -38,9 +37,10 @@ const CAPABILITIES = [
38
37
  * inviting the items describe.
39
38
  *
40
39
  * The "Connect ChatGPT" and "Connect Claude" tiles sit directly above the
41
- * composer (`ModelConnectionLayoutContext`): with no model they are the
42
- * composer's own `ModelConnectionBar`, with a model they are the dismissible
43
- * `SubscriptionOffer`. Every other composer keeps them below.
40
+ * composer (`ModelConnectionLayoutContext`). The composer's `ModelConnectionBar`
41
+ * owns them: with no model the undismissible rows, with a model the
42
+ * dismissible `SubscriptionOffer` (`SubscriptionOfferContext`). Every other
43
+ * composer keeps them below.
44
44
  *
45
45
  * The welcome fades in once, over 300ms. It is opacity only, so reduced motion
46
46
  * needs no other variant.
@@ -54,5 +54,5 @@ export function FirstChat({ projectId, composer }) {
54
54
  return (_jsx(ModelConnectionLayoutContext.Provider, { value: "above", children: _jsxs("div", { className: "relative z-10 flex min-h-0 flex-1 flex-col", children: [_jsx("div", { className: "min-h-0 flex-1 overflow-y-auto", children: _jsxs("section", { "aria-labelledby": headingId, className: cn(SESSION_TRANSCRIPT_CLASS,
55
55
  // Below the floating sidebar toggle, and a little lower on wide
56
56
  // screens where the column has room to breathe.
57
- 'flex flex-col gap-10 pt-16 pb-8 lg:pt-24', 'transition-opacity duration-(--duration-slow) ease-out starting:opacity-0'), children: [_jsxs("div", { className: "flex flex-col gap-3", children: [_jsx("h1", { id: headingId, className: "text-foreground text-2xl font-medium tracking-tight text-balance", children: name ? t('greeting', { name }) : t('greetingNoName') }), _jsx("p", { className: "text-muted-foreground max-w-prose text-base leading-7 text-pretty", children: t('intro') })] }), _jsxs("div", { className: "flex flex-col gap-4", children: [_jsx("h2", { id: canId, className: "text-foreground text-base font-medium", children: t('canTitle') }), _jsx("ul", { "aria-labelledby": canId, className: "grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3", children: CAPABILITIES.map(({ key, icon: Glyph }) => (_jsxs("li", { className: "border-border bg-popover flex flex-col gap-3 rounded-md border p-4", children: [_jsx("span", { className: "bg-muted text-foreground flex size-8 items-center justify-center rounded-sm", children: _jsx(Glyph, { className: "size-4", "aria-hidden": true }) }), _jsxs("span", { className: "flex flex-col gap-1", children: [_jsx("span", { className: "text-foreground text-sm leading-5 font-medium", children: t(`can.${key}.title`) }), _jsx("span", { className: "text-muted-foreground text-sm leading-5 text-pretty", children: t(`can.${key}.body`) })] })] }, key))) }), _jsx("p", { className: "text-muted-foreground text-sm leading-5 text-pretty", children: t('startHint') })] })] }) }), _jsx("div", { className: "relative z-10 mx-auto w-full max-w-210 shrink-0 pb-2 empty:hidden", children: _jsx(SubscriptionOffer, { projectId: projectId }) }), composer] }) }));
57
+ 'flex flex-col gap-10 pt-16 pb-8 lg:pt-24', 'transition-opacity duration-(--duration-slow) ease-out starting:opacity-0'), children: [_jsxs("div", { className: "flex flex-col gap-3", children: [_jsx("h1", { id: headingId, className: "text-foreground text-2xl font-medium tracking-tight text-balance", children: name ? t('greeting', { name }) : t('greetingNoName') }), _jsx("p", { className: "text-muted-foreground max-w-prose text-base leading-7 text-pretty", children: t('intro') })] }), _jsxs("div", { className: "flex flex-col gap-4", children: [_jsx("h2", { id: canId, className: "text-foreground text-base font-medium", children: t('canTitle') }), _jsx("ul", { "aria-labelledby": canId, className: "grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3", children: CAPABILITIES.map(({ key, icon: Glyph }) => (_jsxs("li", { className: "border-border bg-popover flex flex-col gap-3 rounded-md border p-4", children: [_jsx("span", { className: "bg-muted text-foreground flex size-8 items-center justify-center rounded-sm", children: _jsx(Glyph, { className: "size-4", "aria-hidden": true }) }), _jsxs("span", { className: "flex flex-col gap-1", children: [_jsx("span", { className: "text-foreground text-sm leading-5 font-medium", children: t(`can.${key}.title`) }), _jsx("span", { className: "text-muted-foreground text-sm leading-5 text-pretty", children: t(`can.${key}.body`) })] })] }, key))) }), _jsx("p", { className: "text-muted-foreground text-sm leading-5 text-pretty", children: t('startHint') })] })] }) }), _jsx(SubscriptionOfferContext.Provider, { value: projectId, children: composer })] }) }));
58
58
  }
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { SubscriptionOffer } from '../../session/models/subscription-offer.js';
3
+ import { SubscriptionOfferContext } from '../../session/models/model-connection-layout.js';
4
4
  import { useLayoutEffect, useState } from 'react';
5
5
  import { HashIcon, XIcon } from '@phosphor-icons/react';
6
6
  import { SessionWelcome } from '../../session/thread/session-welcome.js';
@@ -81,7 +81,7 @@ export function ProjectHomeWelcomeBody({ projectId, composer, sentTurn, onPickSu
81
81
  // Storage blocked (private mode, an in-app WebView): variant 0 stays.
82
82
  }
83
83
  }, []);
84
- return (_jsx("div", { className: "relative z-10 flex min-h-0 flex-1 flex-col overflow-y-auto", children: _jsx("div", { className: "m-auto flex w-full max-w-3xl shrink-0 flex-col gap-10 py-8 sm:px-4", children: _jsxs("div", { className: "flex w-full flex-col gap-6", children: [spaceLabel && !sentTurn ? (_jsxs("div", { className: "flex items-center gap-1 px-4", children: [_jsxs(Link, { href: uiRoutes().space(projectId, space.name) ?? uiRoutes().project(projectId), className: "hover:bg-hover text-foreground flex min-w-0 items-center gap-1 rounded-sm px-1 text-sm font-medium transition-colors", children: [_jsx(HashIcon, { className: "text-muted-foreground size-3.5 shrink-0" }), _jsx("span", { className: "truncate", children: spaceLabel })] }), _jsx(Button, { size: "icon-xs", variant: "ghost", onClick: () => setActiveSpace(null), "aria-label": tSpaces('leave', { name: spaceLabel }), children: _jsx(XIcon, {}) }), spaceAgents.length ? (_jsx("span", { role: "group", className: "ml-auto flex items-center gap-1", "aria-label": tSpaces('agents'), children: spaceAgents.map((name) => (_jsx(Link, { href: agentHref(projectId, name), className: "rounded-sm", "aria-label": tSpaces('openAgent', { name }), children: _jsx(AgentMark, { slug: name }) }, name))) })) : null] })) : null, _jsxs("h1", { className: "text-muted-foreground w-full px-4 text-2xl tracking-tight text-balance", hidden: !!sentTurn, children: [greeting.before, ' ', _jsx("span", { className: "text-foreground", children: displayName }), spaceBefore(greeting.after) ? ' ' : '', greeting.after] }), space?.description && !sentTurn ? (_jsx("p", { className: "text-muted-foreground w-full px-4 text-sm text-pretty", children: space.description })) : null, sentTurn ? _jsx("div", { className: "w-full px-4", children: sentTurn }) : null, composer ? _jsx("div", { className: "flex w-full flex-col gap-4", children: composer }) : null, composer && !sentTurn ? _jsx(SubscriptionOffer, { projectId: projectId }) : null] }) }) }));
84
+ return (_jsx("div", { className: "relative z-10 flex min-h-0 flex-1 flex-col overflow-y-auto", children: _jsx("div", { className: "m-auto flex w-full max-w-3xl shrink-0 flex-col gap-10 py-8 sm:px-4", children: _jsxs("div", { className: "flex w-full flex-col gap-6", children: [spaceLabel && !sentTurn ? (_jsxs("div", { className: "flex items-center gap-1 px-4", children: [_jsxs(Link, { href: uiRoutes().space(projectId, space.name) ?? uiRoutes().project(projectId), className: "hover:bg-hover text-foreground flex min-w-0 items-center gap-1 rounded-sm px-1 text-sm font-medium transition-colors", children: [_jsx(HashIcon, { className: "text-muted-foreground size-3.5 shrink-0" }), _jsx("span", { className: "truncate", children: spaceLabel })] }), _jsx(Button, { size: "icon-xs", variant: "ghost", onClick: () => setActiveSpace(null), "aria-label": tSpaces('leave', { name: spaceLabel }), children: _jsx(XIcon, {}) }), spaceAgents.length ? (_jsx("span", { role: "group", className: "ml-auto flex items-center gap-1", "aria-label": tSpaces('agents'), children: spaceAgents.map((name) => (_jsx(Link, { href: agentHref(projectId, name), className: "rounded-sm", "aria-label": tSpaces('openAgent', { name }), children: _jsx(AgentMark, { slug: name }) }, name))) })) : null] })) : null, _jsxs("h1", { className: "text-muted-foreground w-full px-4 text-2xl tracking-tight text-balance", hidden: !!sentTurn, children: [greeting.before, ' ', _jsx("span", { className: "text-foreground", children: displayName }), spaceBefore(greeting.after) ? ' ' : '', greeting.after] }), space?.description && !sentTurn ? (_jsx("p", { className: "text-muted-foreground w-full px-4 text-sm text-pretty", children: space.description })) : null, sentTurn ? _jsx("div", { className: "w-full px-4", children: sentTurn }) : null, composer ? (_jsx(SubscriptionOfferContext.Provider, { value: sentTurn ? null : projectId, children: _jsx("div", { className: "flex w-full flex-col gap-4", children: composer }) })) : null] }) }) }));
85
85
  }
86
86
  /** The wallpaper behind the hero. Pointer-transparent and inert — it is
87
87
  * scenery, and nothing in it is reachable. */
@@ -3,7 +3,7 @@
3
3
  * resizable side panel), the project sidebar, sessions list, project home, and the
4
4
  * permission and route helpers they share.
5
5
  */
6
- export { ProjectPageHeader } from '../internal/layout/project-page-header.js';
6
+ export { PROJECT_PAGE_HEADER_CLASS, ProjectPageHeader } from '../internal/layout/project-page-header.js';
7
7
  export { useCapabilityAccess, useProjectNavRows } from '../internal/layout/project-settings-nav.js';
8
8
  export { SidebarToggle } from '../internal/layout/sidebar-toggle.js';
9
9
  export { activeCapabilityTab, agentHref, capabilityTabHref, channelsHref, remindersHref, reviewHref, } from '../internal/lib/capability-tab-routes.js';
@@ -8,7 +8,7 @@
8
8
  // review); since Turbopack does not tree-shake this barrel in dev, re-exporting
9
9
  // it made all ~44 routes that import `@kortix/ui/workspace` compile that graph.
10
10
  // The /admin route imports it directly from '@kortix/ui/workspace/admin/project-admin-dashboard'.
11
- export { ProjectPageHeader } from '../internal/layout/project-page-header.js';
11
+ export { PROJECT_PAGE_HEADER_CLASS, ProjectPageHeader } from '../internal/layout/project-page-header.js';
12
12
  export { useCapabilityAccess, useProjectNavRows } from '../internal/layout/project-settings-nav.js';
13
13
  export { SidebarToggle } from '../internal/layout/sidebar-toggle.js';
14
14
  export { activeCapabilityTab, agentHref, capabilityTabHref, channelsHref, remindersHref, reviewHref, } from '../internal/lib/capability-tab-routes.js';
@@ -27,6 +27,7 @@ import { SandboxPicker } from '../home/sandbox-picker.js';
27
27
  import { ProjectHomeWallpaper, ProjectHomeWelcomeBody } from '../home/welcome-body.js';
28
28
  import { useProjectHomeCall } from './use-project-home-call.js';
29
29
  import { useProjectHomeSend } from './use-project-home-send.js';
30
+ import { SpacePicker } from '../session-spaces/space-picker.js';
30
31
  // This path is this view's public surface — the instant session shell and the
31
32
  // IAM tests already import from here, so the moved pieces keep their address.
32
33
  export { ProjectHomeWelcomeBody } from '../home/welcome-body.js';
@@ -45,7 +46,11 @@ export function ProjectHome(props) {
45
46
  return (_jsx(ProjectScope, { projectId: props.projectId, children: _jsx(ProjectHomeView, { ...props }) }));
46
47
  }
47
48
  function ProjectHomeView({ projectId, onSend, busy, beforeSend, onboarding: onboardingEnabled = false, }) {
48
- const defaultSend = useProjectHomeSend(projectId, { beforeSend });
49
+ const searchParams = useUiSearchParams();
50
+ // The space a new session is filed in (flag `session_groups`). A space's
51
+ // page links here with `?space=<group_id>` to start with it picked.
52
+ const [selectedSpace, setSelectedSpace] = useState(() => searchParams?.get('space') || null);
53
+ const defaultSend = useProjectHomeSend(projectId, { beforeSend, groupId: selectedSpace });
49
54
  const { HomeAnnouncement } = useUiComponents();
50
55
  const send = onSend ?? defaultSend.send;
51
56
  const creating = onSend ? !!busy : defaultSend.sending;
@@ -54,7 +59,6 @@ function ProjectHomeView({ projectId, onSend, busy, beforeSend, onboarding: onbo
54
59
  // The first chat never ends, but it opens only when asked for
55
60
  // (`firstChatHref`: the sidebar row or the onboarding exit). Plain project
56
61
  // home, which "New session" opens, stays the normal home.
57
- const searchParams = useUiSearchParams();
58
62
  const firstChatPending = useFirstChatPending(projectId);
59
63
  const firstChatRequested = isFirstChatRequested(searchParams);
60
64
  const router = useUiRouter();
@@ -299,7 +303,9 @@ function ProjectHomeView({ projectId, onSend, busy, beforeSend, onboarding: onbo
299
303
  // beneath, the menu above.
300
304
  underbarPlacement: firstChat || isMobile ? 'below' : 'inline', slashMenuPlacement: firstChat ? 'above' : 'below', placeholder: firstChat
301
305
  ? tFirstChat('placeholder')
302
- : tI18nHardcoded.raw('autoFeaturesCoWorkerProjectLayoutProjectHomeJsxAttrPlaceholder115e6c2d'), prefill: prefill, onAgentSelectionChange: setSelectedAgent, sandboxSlot: sandboxSlot, call: call }));
306
+ : tI18nHardcoded.raw('autoFeaturesCoWorkerProjectLayoutProjectHomeJsxAttrPlaceholder115e6c2d'), prefill: prefill, onAgentSelectionChange: setSelectedAgent, sandboxSlot: sandboxSlot, call: call,
307
+ // A host's own `onSend` decides where a session goes; the first chat is the onboarding.
308
+ toolbarSlot: onSend || firstChat ? undefined : (_jsx(SpacePicker, { projectId: projectId, value: selectedSpace, onChange: setSelectedSpace })) }));
303
309
  return (
304
310
  // A file dropped anywhere on the page attaches to the composer, as on a
305
311
  // session page.
@@ -18,6 +18,8 @@ export interface UseProjectHomeSendOptions {
18
18
  /** The new thread's id the instant Enter is pressed (the create keeps it): a chat opens its thread from here. */
19
19
  onCreating?: (sessionId: string) => void;
20
20
  };
21
+ /** The space (session group, flag `session_groups`) each new session is filed in; null or absent: none. */
22
+ groupId?: string | null;
21
23
  }
22
24
  /**
23
25
  * The project home composer's send: create the session (with the prompt as
@@ -25,7 +27,7 @@ export interface UseProjectHomeSendOptions {
25
27
  * message on its first frame. `ProjectHome` uses it when the host passes no
26
28
  * `onSend`.
27
29
  */
28
- export declare function useProjectHomeSend(projectId: string, { beforeSend, space }?: UseProjectHomeSendOptions): {
30
+ export declare function useProjectHomeSend(projectId: string, { beforeSend, space, groupId }?: UseProjectHomeSendOptions): {
29
31
  send: (text: string, files: AttachedFile[] | undefined, options?: ProjectHomeSendOptions, attachments?: AttachmentSubmission) => Promise<void>;
30
32
  sending: boolean;
31
33
  draftHandoffScope: import("react").RefObject<DraftScope | null>;
@@ -17,7 +17,7 @@ import { buildNewSessionCreateInput } from './new-session-create.js';
17
17
  * message on its first frame. `ProjectHome` uses it when the host passes no
18
18
  * `onSend`.
19
19
  */
20
- export function useProjectHomeSend(projectId, { beforeSend, space } = {}) {
20
+ export function useProjectHomeSend(projectId, { beforeSend, space, groupId } = {}) {
21
21
  const tI18nComplete = useTranslations('hardcodedUi.i18nComplete');
22
22
  const tComposerAttachments = useTranslations('hardcodedUi.composerAttachments');
23
23
  const newSession = useNewProjectSession(projectId);
@@ -118,6 +118,7 @@ export function useProjectHomeSend(projectId, { beforeSend, space } = {}) {
118
118
  ...buildNewSessionCreateInput(options),
119
119
  // No space: a regular session, filed in no space under `chat` too.
120
120
  space_id: space ? space.spaceId : null,
121
+ ...(groupId ? { group_id: groupId } : {}),
121
122
  ...(heldAttachments
122
123
  ? {}
123
124
  : {
@@ -162,6 +163,9 @@ export function useProjectHomeSend(projectId, { beforeSend, space } = {}) {
162
163
  useFirstPromptPreviewStore.getState().setFirstPromptPreview(sessionId, text, files ?? []);
163
164
  // A space opens the thread beside its timeline (a gate Retry too).
164
165
  space?.onOpen(sessionId);
166
+ // A space's session lists (the sidebar section, the space page) do not refetch on focus: show the new row now.
167
+ if (groupId)
168
+ void queryClient.invalidateQueries({ queryKey: [...qk.project.sessionsScope(projectId), 'list-paged'] });
165
169
  resolve(sessionId);
166
170
  },
167
171
  });
@@ -176,7 +180,7 @@ export function useProjectHomeSend(projectId, { beforeSend, space } = {}) {
176
180
  return;
177
181
  }
178
182
  startHeldPost(heldAttachments, sessionId);
179
- }, [beforeSend, space, newSession, projectId, tI18nComplete, tComposerAttachments, queryClient, viewer]);
183
+ }, [beforeSend, space, groupId, newSession, projectId, tI18nComplete, tComposerAttachments, queryClient, viewer]);
180
184
  return { send, sending, draftHandoffScope };
181
185
  }
182
186
  /**
@@ -1,8 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useTranslations } from '../../i18n/index.js';
4
- import { SidebarToggle } from '../../internal/layout/sidebar-toggle.js';
5
- import { useOptionalSidebar } from '../../primitives/sidebar.js';
4
+ import { ProjectPageHeader } from '../../internal/layout/project-page-header.js';
6
5
  import { MemoryView } from './memory-view.js';
7
6
  /**
8
7
  * The project's Memory page: the Company layer, what every agent in the
@@ -11,6 +10,5 @@ import { MemoryView } from './memory-view.js';
11
10
  */
12
11
  export function CompanyMemoryPage({ projectId }) {
13
12
  const t = useTranslations('spaces.memory.company');
14
- const sidebar = useOptionalSidebar();
15
- return (_jsxs("div", { className: "bg-background flex min-h-0 flex-1 flex-col overflow-hidden", children: [_jsxs("div", { className: "kx-titlebar-row kx-capability-titlebar relative flex shrink-0 items-center gap-2 border-b px-2", "data-sidebar-collapsed": sidebar?.state === 'collapsed' || undefined, children: [_jsx(SidebarToggle, {}), _jsxs("div", { className: "kx-titlebar-tabs flex h-12 min-w-0 flex-1 items-baseline gap-2 px-2", children: [_jsx("h1", { className: "shrink-0 self-center text-lg font-semibold", children: t('title') }), _jsx("p", { className: "text-muted-foreground min-w-0 truncate self-center text-xs", children: t('subtitle') })] })] }), _jsx("div", { className: "relative min-h-0 flex-1 overflow-hidden", children: _jsx("div", { className: "absolute inset-0 flex flex-col", children: _jsx(MemoryView, { projectId: projectId, layerKey: "company", place: t('place') }) }) })] }));
13
+ return (_jsxs("div", { className: "bg-background flex min-h-0 flex-1 flex-col overflow-hidden", children: [_jsx(ProjectPageHeader, { title: t('title'), titleAccessory: _jsx("p", { className: "text-muted-foreground min-w-0 truncate text-xs", children: t('subtitle') }) }), _jsx("div", { className: "relative min-h-0 flex-1 overflow-hidden", children: _jsx("div", { className: "absolute inset-0 flex flex-col", children: _jsx(MemoryView, { projectId: projectId, layerKey: "company", place: t('place') }) }) })] }));
16
14
  }
@@ -139,7 +139,6 @@ export function buildCreateRepoPayload(state, accountId) {
139
139
  ...(state.installationId ? { installation_id: state.installationId } : {}),
140
140
  private: true,
141
141
  starter_template: 'general-knowledge-worker',
142
- ...(state.templateId ? { source_item_id: state.templateId } : {}),
143
142
  ...iconPayload(state),
144
143
  };
145
144
  }
@@ -5,7 +5,6 @@ export interface NewWorkspaceFormState {
5
5
  icon: ProjectIconValue;
6
6
  source: RepositorySource;
7
7
  defaultBranch: string;
8
- templateId: string | null;
9
8
  /**
10
9
  * The account whose GitHub connection the GitHub sources use
11
10
  * (`githubSourceAccount`): their installations are account-scoped. The
@@ -11,7 +11,6 @@ export const INITIAL_FORM_STATE = {
11
11
  icon: null,
12
12
  source: 'managed',
13
13
  defaultBranch: 'main',
14
- templateId: null,
15
14
  accountId: null,
16
15
  installationId: null,
17
16
  repoFullName: null,
@@ -55,7 +54,5 @@ export function buildProvisionPayload(state) {
55
54
  payload.icon = state.icon.emoji;
56
55
  else if (state.icon && 'glyph' in state.icon)
57
56
  payload.icon_glyph = state.icon.glyph;
58
- if (state.templateId)
59
- payload.source_item_id = state.templateId;
60
57
  return payload;
61
58
  }
@@ -15,7 +15,7 @@ export declare const RETRY_DELAY_MS: number[];
15
15
  * Deliberately NOT the full form state. `icon` and `defaultBranch` are
16
16
  * refinements a user can still be adjusting between a failed submit and a
17
17
  * retry — a retry must reuse the SAME key, not mint a new one just because
18
- * the icon changed. `name`, `accountId`, `templateId` and `source` are what
18
+ * the icon changed. `name`, `accountId` and `source` are what
19
19
  * actually identifies a genuinely different workspace: keying on those means
20
20
  * creating "suna-web" then, moments later, "kortix-api" in the same account
21
21
  * mints two independent keys instead of the second create silently returning
@@ -27,7 +27,7 @@ export const RETRY_DELAY_MS = [400, 1_200];
27
27
  * Deliberately NOT the full form state. `icon` and `defaultBranch` are
28
28
  * refinements a user can still be adjusting between a failed submit and a
29
29
  * retry — a retry must reuse the SAME key, not mint a new one just because
30
- * the icon changed. `name`, `accountId`, `templateId` and `source` are what
30
+ * the icon changed. `name`, `accountId` and `source` are what
31
31
  * actually identifies a genuinely different workspace: keying on those means
32
32
  * creating "suna-web" then, moments later, "kortix-api" in the same account
33
33
  * mints two independent keys instead of the second create silently returning
@@ -38,7 +38,6 @@ export function fingerprintOf(state) {
38
38
  return [
39
39
  state.accountId ?? 'new',
40
40
  state.name.trim(),
41
- state.templateId ?? '',
42
41
  state.source,
43
42
  ].join(':');
44
43
  }