@kortix/ui 0.14.17 → 0.14.19

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 (116) hide show
  1. package/README.md +2 -2
  2. package/dist/_vendor/kortix-shared.js +38 -2
  3. package/dist/_vendor/shared/channel-descriptors.d.ts +20 -1
  4. package/dist/_vendor/shared/channel-message.d.ts +1 -1
  5. package/dist/_vendor/shared/my-kortix-agent.d.ts +1 -1
  6. package/dist/_vendor/shared/space-slug.d.ts +3 -4
  7. package/dist/_vendor/shared/utils/ambiguous-write.d.ts +3 -3
  8. package/dist/customize/agents/agent-instructions.d.ts +8 -0
  9. package/dist/customize/agents/agent-instructions.js +38 -12
  10. package/dist/customize/agents/agent-overview.d.ts +6 -3
  11. package/dist/customize/agents/agent-overview.js +8 -2
  12. package/dist/customize/agents/agent-page-chrome.d.ts +45 -27
  13. package/dist/customize/agents/agent-page-chrome.js +60 -37
  14. package/dist/customize/agents/agent-page.js +88 -99
  15. package/dist/customize/agents/agent-tabs.d.ts +15 -14
  16. package/dist/customize/agents/agent-tabs.js +19 -16
  17. package/dist/customize/agents/agents-page.js +8 -6
  18. package/dist/customize/connectors/detail/account-info.js +1 -1
  19. package/dist/customize/project-settings/project-admin-sections.d.ts +6 -2
  20. package/dist/customize/project-settings/project-admin-sections.js +5 -3
  21. package/dist/customize/project-settings/project-settings-sections.js +1 -1
  22. package/dist/customize/sections/component/channel-access-panel.js +16 -0
  23. package/dist/customize/sections/component/channel-mocks.d.ts +5 -0
  24. package/dist/customize/sections/component/channel-mocks.js +14 -2
  25. package/dist/customize/sections/component/discord-channel-row.d.ts +6 -0
  26. package/dist/customize/sections/component/discord-channel-row.js +48 -0
  27. package/dist/customize/sections/gateway-access-tab.js +1 -1
  28. package/dist/customize/sections/view/channels-view.js +18 -1
  29. package/dist/customize/sections/view/git-view.js +2 -2
  30. package/dist/customize/sections/view/secret-delivery.js +1 -1
  31. package/dist/customize/sections/view/secrets-view.js +1 -1
  32. package/dist/customize/settings/rail.js +2 -2
  33. package/dist/customize/settings/tabs/experimental-tab.d.ts +2 -2
  34. package/dist/customize/settings/tabs/experimental-tab.js +2 -2
  35. package/dist/customize/settings/tabs/general-tab.js +5 -4
  36. package/dist/customize/shared/capability-library.js +19 -22
  37. package/dist/customize/shared/customize-tab-bar.d.ts +1 -2
  38. package/dist/customize/shared/customize-tab-bar.js +10 -11
  39. package/dist/files/project/components/drive-create-dialog.js +3 -3
  40. package/dist/i18n/en.d.ts +51 -4
  41. package/dist/i18n/en.js +66 -19
  42. package/dist/i18n/ui-catalog/remaining-ui-translation-keys.generated.js +1 -1
  43. package/dist/internal/branding/branding-provider.d.ts +15 -4
  44. package/dist/internal/branding/branding-provider.js +12 -7
  45. package/dist/internal/connector-logo/connector-logo.js +2 -0
  46. package/dist/internal/connector-logo/connector-mark-files.js +1 -0
  47. package/dist/internal/hooks/channels/use-channels-installations.d.ts +7 -2
  48. package/dist/internal/hooks/channels/use-channels-installations.js +31 -1
  49. package/dist/internal/hooks/projects/use-new-project-session.d.ts +6 -14
  50. package/dist/internal/hooks/projects/use-new-project-session.js +12 -97
  51. package/dist/internal/hooks/use-notification-center.d.ts +11 -8
  52. package/dist/internal/hooks/use-notification-center.js +22 -10
  53. package/dist/internal/icons/discord.d.ts +9 -0
  54. package/dist/internal/icons/discord.js +9 -0
  55. package/dist/internal/layout/connect-mcp-modal.js +1 -1
  56. package/dist/internal/lib/browser-noise/rules/expected-states.js +1 -1
  57. package/dist/internal/lib/error-handler.js +1 -1
  58. package/dist/internal/lib/use-project-feature-flags.js +5 -3
  59. package/dist/markdown/markdown-frontmatter.d.ts +0 -3
  60. package/dist/markdown/markdown-frontmatter.js +45 -5
  61. package/dist/session/actions/project-session-list-helpers.d.ts +4 -14
  62. package/dist/session/actions/project-session-list-helpers.js +5 -16
  63. package/dist/session/actions/session-label.d.ts +5 -9
  64. package/dist/session/actions/session-label.js +6 -10
  65. package/dist/session/participants/session-participants.d.ts +7 -5
  66. package/dist/session/participants/session-participants.js +11 -7
  67. package/dist/session/status/provisioning-failure.d.ts +4 -5
  68. package/dist/session/status/provisioning-failure.js +4 -5
  69. package/dist/session/thread/optimistic-turn.js +11 -2
  70. package/dist/session/thread/session-chat.js +73 -25
  71. package/dist/session/thread/transcript.d.ts +9 -0
  72. package/dist/session/thread/transcript.js +44 -5
  73. package/dist/session/tool/tools/channel-send-card.js +1 -0
  74. package/dist/session/turn/channel-brand.js +4 -0
  75. package/dist/session/turn/message-author.d.ts +13 -8
  76. package/dist/session/turn/message-author.js +34 -16
  77. package/dist/session/turn/peer-message-row.js +24 -6
  78. package/dist/session/turn/user-message.js +1 -1
  79. package/dist/session/voice/call-audio.d.ts +32 -0
  80. package/dist/session/voice/call-audio.js +146 -0
  81. package/dist/session/voice/screen-share.d.ts +24 -0
  82. package/dist/session/voice/screen-share.js +75 -0
  83. package/dist/session/voice/use-voice-call.d.ts +15 -0
  84. package/dist/session/voice/use-voice-call.js +220 -0
  85. package/dist/session/voice/voice-call-bar.d.ts +4 -0
  86. package/dist/session/voice/voice-call-bar.js +39 -0
  87. package/dist/session/voice/voice-call-state.d.ts +96 -0
  88. package/dist/session/voice/voice-call-state.js +103 -0
  89. package/dist/session/voice/voice-call-store.d.ts +12 -0
  90. package/dist/session/voice/voice-call-store.js +10 -0
  91. package/dist/session/voice/voice-call-url.d.ts +24 -0
  92. package/dist/session/voice/voice-call-url.js +33 -0
  93. package/dist/session/voice/voice-call.d.ts +15 -0
  94. package/dist/session/voice/voice-call.js +54 -0
  95. package/dist/styles.css +1 -1
  96. package/dist/workspace/admin/project-admin-dashboard.js +9 -4
  97. package/dist/workspace/layout/project-home.js +13 -14
  98. package/dist/workspace/sidebar/footer/project-manifest-issues-alert.d.ts +1 -1
  99. package/dist/workspace/sidebar/footer/project-manifest-issues-alert.js +4 -3
  100. package/dist/workspace/sidebar/project-session-list.js +1 -0
  101. package/dist/workspace/sidebar/session-filter-menu.js +1 -0
  102. package/dist/workspace/sidebar/session-grouping.d.ts +4 -0
  103. package/dist/workspace/sidebar/session-grouping.js +2 -0
  104. package/dist/workspace/sidebar/session-source-icons.js +2 -0
  105. package/dist/workspace/space/space-page.js +2 -2
  106. package/package.json +9 -9
  107. package/skills/kortix-ui/SKILL.md +2 -2
  108. package/skills/kortix-ui/references/custom-dashboard.md +1 -1
  109. package/dist/customize/agents/agent-section-rail.d.ts +0 -21
  110. package/dist/customize/agents/agent-section-rail.js +0 -23
  111. package/dist/internal/hooks/projects/use-warm-project-session.d.ts +0 -270
  112. package/dist/internal/hooks/projects/use-warm-project-session.js +0 -362
  113. package/dist/internal/hooks/projects/warm-session-seed.d.ts +0 -66
  114. package/dist/internal/hooks/projects/warm-session-seed.js +0 -80
  115. package/dist/internal/hooks/projects/warm-session-taken-registry.d.ts +0 -61
  116. package/dist/internal/hooks/projects/warm-session-taken-registry.js +0 -141
@@ -1,10 +1,11 @@
1
1
  'use client';
2
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  /**
4
- * Customize's top bar, over every Customize and Project admin page: the
5
- * project's libraries (Connectors, Secrets, Skills, Tools, Extensions, Drives,
6
- * Triggers, Models, Repo), Review, then Members ↗ and Settings on the right.
7
- * Agents are not a tab: the sidebar's Customize lists them. Prod's layout (Jay, 2026-10-29): one row of tabs,
4
+ * Customize's top bar, over every Customize and Project admin page, the
5
+ * agent pages included: Agents, a separator, the project's libraries
6
+ * (Connectors, Secrets, Skills, Tools, Extensions, Drives, Triggers, Models,
7
+ * Repo), Review, then Members ↗ and Settings on the right (Jay, 2026-11-03:
8
+ * Agents leads the bar again). Prod's layout (Jay, 2026-10-29): one row of tabs,
8
9
  * no second column beside the sidebar. A library tab opens its Project admin
9
10
  * page full width; Settings opens Project admin's settings sections, which
10
11
  * keep a short sub-nav of their own.
@@ -44,18 +45,16 @@ export function useInCustomizeFrame() {
44
45
  return useContext(InCustomizeFrame);
45
46
  }
46
47
  /** The bar, then the page. Every Customize and Project admin route renders through it,
47
- * except the agents' own pages (`/customize/agents/…`): an agent is reached from the
48
- * sidebar's Customize and keeps its own header, with no bar over it. */
48
+ * the Agents list and each agent's page included. */
49
49
  export function CustomizeFrame({ projectId, children }) {
50
- const pathname = useUiPathname() ?? '';
51
- if (/\/customize\/agents(\/|$)/.test(pathname))
52
- return _jsx(_Fragment, { children: children });
53
50
  return (_jsxs(InCustomizeFrame.Provider, { value: true, children: [_jsx(CustomizeTabBar, { projectId: projectId }), children] }));
54
51
  }
55
52
  const TAB_CLASS = 'w-fit flex-none px-1 py-3';
56
53
  const MEMBERS_LINK_CLASS = 'text-muted-foreground hover:text-foreground flex w-fit flex-none items-center gap-1 px-1 py-3 text-sm font-medium whitespace-nowrap transition-colors';
57
54
  /** The active tab: `/admin/<library>` that library, Review, or any settings section Settings. */
58
55
  function activeTab(pathname) {
56
+ if (/\/customize\/agents(\/|$)/.test(pathname))
57
+ return 'agents';
59
58
  if (/\/customize\/review(\/|$)/.test(pathname))
60
59
  return 'review';
61
60
  const section = pathname.match(/\/admin\/([^/?#]+)/)?.[1];
@@ -88,7 +87,7 @@ export function CustomizeTabBar({ projectId }) {
88
87
  const allowed = new Set(access.tabs);
89
88
  const libraries = PROJECT_ADMIN_RESOURCES.filter((r) => !r.host && (!r.capability || allowed.has(r.capability)) && (r.flag !== 'drives' || drives.enabled));
90
89
  const tab = (value, href, label) => (_jsx(TabsTrigger, { value: value, asChild: true, className: TAB_CLASS, children: _jsx(Link, { href: href, prefetch: true, children: label }) }, value));
91
- return (_jsxs("div", { className: "kx-titlebar-row kx-capability-titlebar relative flex shrink-0 items-center gap-1 border-b px-2", "data-sidebar-collapsed": sidebar?.state === 'collapsed' || undefined, children: [_jsx(SidebarToggle, {}), _jsx(FadedScrollArea, { orientation: "horizontal", fadeColor: "from-background", rootClassName: "min-w-0 flex-1", children: _jsx(Tabs, { value: activeTab(pathname), className: "w-max min-w-full", children: _jsxs(TabsList, { type: "underline", underlineSize: "md", size: "lg", className: cn('h-auto w-full justify-start gap-5 border-b-0 px-2', !access.settled && 'invisible'), "aria-busy": !access.settled || undefined, children: [libraries.map((r) => {
90
+ return (_jsxs("div", { className: "kx-titlebar-row kx-capability-titlebar relative flex shrink-0 items-center gap-1 border-b px-2", "data-sidebar-collapsed": sidebar?.state === 'collapsed' || undefined, children: [_jsx(SidebarToggle, {}), _jsx(FadedScrollArea, { orientation: "horizontal", fadeColor: "from-background", rootClassName: "min-w-0 flex-1", children: _jsx(Tabs, { value: activeTab(pathname), className: "w-max min-w-full", children: _jsxs(TabsList, { type: "underline", underlineSize: "md", size: "lg", className: cn('h-auto w-full justify-start gap-5 border-b-0 px-2', !access.settled && 'invisible'), "aria-busy": !access.settled || undefined, children: [allowed.has('agent') ? (_jsxs(_Fragment, { children: [tab('agents', capabilityTabHref(projectId, 'agent'), tI18nComplete.raw('text279b44d2ab4b')), _jsx("span", { "aria-hidden": true, className: "bg-border h-4 w-px shrink-0 self-center" })] })) : null, libraries.map((r) => {
92
91
  const legacy = RESOURCE_LABEL_KEYS[r.key];
93
92
  return tab(r.key, projectAdminHref(projectId, r.key), legacy ? tI18nComplete.raw(legacy) : tAdmin(r.key));
94
93
  }), allowed.has('review') ? tab('review', capabilityTabHref(projectId, 'review'), tTabs('review')) : null, _jsxs("span", { className: "ml-auto flex items-center gap-5", children: [_jsx(MembersLink, { projectId: projectId }), allowed.has('config') ? tab('settings', adminPath(projectId, 'general'), tTabs('settings')) : null] })] }) }) })] }));
@@ -21,14 +21,14 @@ export function DriveCreateDialog({ kind, location, isTaken, askAudience = false
21
21
  const tI18nComplete = useTranslations('hardcodedUi.i18nComplete');
22
22
  const id = useId();
23
23
  const [name, setName] = useState('');
24
- const [audience, setAudience] = useState('everyone');
24
+ const [audience, setAudience] = useState('restricted');
25
25
  // The last kind keeps the title through the exit animation.
26
26
  const [shownKind, setShownKind] = useState('folder');
27
27
  if (kind && kind !== shownKind)
28
28
  setShownKind(kind);
29
29
  const close = () => {
30
30
  setName('');
31
- setAudience('everyone');
31
+ setAudience('restricted');
32
32
  onClose();
33
33
  };
34
34
  const trimmed = name.trim();
@@ -48,5 +48,5 @@ export function DriveCreateDialog({ kind, location, isTaken, askAudience = false
48
48
  return;
49
49
  onCreate(kind, trimmed, askAudience && kind === 'folder' ? audience : undefined);
50
50
  close();
51
- }, children: [_jsxs(ModalBody, { children: [_jsxs(Field, { children: [_jsx(FieldLabel, { htmlFor: `${id}-name`, className: "sr-only", children: shownKind === 'folder' ? t('folderNameLabel') : t('fileNameLabel') }), _jsx(Input, { id: `${id}-name`, autoComplete: "off", spellCheck: false, value: name, onChange: (event) => setName(event.target.value), placeholder: shownKind === 'folder' ? t('untitledFolder') : t('untitledFile'), "aria-invalid": error ? true : undefined, autoFocus: true }), error ? (_jsx(FieldDescription, { className: "text-destructive", role: "alert", children: error })) : null] }), askAudience && shownKind === 'folder' ? (_jsxs(Field, { className: "mt-4 gap-1.5", children: [_jsx(FieldLabel, { children: t('audienceQuestion') }), _jsxs(RadioGroup, { value: audience, onValueChange: (mode) => setAudience(mode), className: "space-y-2", children: [_jsx(RadioGroupItem, { value: "everyone", id: `${id}-everyone`, label: t('everyoneInProject'), description: t('audienceEveryoneDescription'), size: "lg", variant: "outline" }), _jsx(RadioGroupItem, { value: "restricted", id: `${id}-restricted`, label: t('audienceAdmins'), description: t('audienceAdminsDescription'), size: "lg", variant: "outline" }), _jsx(RadioGroupItem, { value: "specific", id: `${id}-specific`, label: t('audienceSpecific'), description: t('audienceSpecificDescription'), size: "lg", variant: "outline" })] })] })) : null] }), _jsxs(ModalFooter, { children: [_jsx(Button, { type: "button", variant: "outline-ghost", onClick: close, children: tI18nComplete.raw('text19766ed6ccb2') }), _jsx(Button, { type: "submit", disabled: !canSubmit, children: t('create') })] })] })] }) }));
51
+ }, children: [_jsxs(ModalBody, { children: [_jsxs(Field, { children: [_jsx(FieldLabel, { htmlFor: `${id}-name`, className: "sr-only", children: shownKind === 'folder' ? t('folderNameLabel') : t('fileNameLabel') }), _jsx(Input, { id: `${id}-name`, autoComplete: "off", spellCheck: false, value: name, onChange: (event) => setName(event.target.value), placeholder: shownKind === 'folder' ? t('untitledFolder') : t('untitledFile'), "aria-invalid": error ? true : undefined, autoFocus: true }), error ? (_jsx(FieldDescription, { className: "text-destructive", role: "alert", children: error })) : null] }), askAudience && shownKind === 'folder' ? (_jsxs(Field, { className: "mt-4 gap-1.5", children: [_jsx(FieldLabel, { children: t('audienceQuestion') }), _jsxs(RadioGroup, { value: audience, onValueChange: (mode) => setAudience(mode), className: "space-y-2", children: [_jsx(RadioGroupItem, { value: "restricted", id: `${id}-restricted`, label: t('audienceAdmins'), description: t('audienceAdminsDescription'), size: "lg", variant: "outline" }), _jsx(RadioGroupItem, { value: "specific", id: `${id}-specific`, label: t('audienceSpecific'), description: t('audienceSpecificDescription'), size: "lg", variant: "outline" })] })] })) : null] }), _jsxs(ModalFooter, { children: [_jsx(Button, { type: "button", variant: "outline-ghost", onClick: close, children: tI18nComplete.raw('text19766ed6ccb2') }), _jsx(Button, { type: "submit", disabled: !canSubmit, children: t('create') })] })] })] }) }));
52
52
  }
package/dist/i18n/en.d.ts CHANGED
@@ -772,10 +772,6 @@ declare const catalog: {
772
772
  name: string;
773
773
  description: string;
774
774
  };
775
- warm_sessions: {
776
- name: string;
777
- description: string;
778
- };
779
775
  secrets_egress: {
780
776
  name: string;
781
777
  description: string;
@@ -844,6 +840,14 @@ declare const catalog: {
844
840
  name: string;
845
841
  description: string;
846
842
  };
843
+ voice_call: {
844
+ name: string;
845
+ description: string;
846
+ };
847
+ shared_drives: {
848
+ name: string;
849
+ description: string;
850
+ };
847
851
  };
848
852
  channelsSwitch: {
849
853
  onTitle: string;
@@ -1201,6 +1205,7 @@ declare const catalog: {
1201
1205
  chat: string;
1202
1206
  slack: string;
1203
1207
  telegram: string;
1208
+ discord: string;
1204
1209
  teams: string;
1205
1210
  email: string;
1206
1211
  scheduled: string;
@@ -4280,6 +4285,7 @@ declare const catalog: {
4280
4285
  textedac6130dac7: string;
4281
4286
  textfc73e9ad2dae: string;
4282
4287
  text8faf56a14a8d: string;
4288
+ text3416de570ab5: string;
4283
4289
  text8ccfe10f2f2d: string;
4284
4290
  text36f6474748b3: string;
4285
4291
  text45b9df5730ac: string;
@@ -6745,6 +6751,23 @@ declare const catalog: {
6745
6751
  channelAccessAllowAria: string;
6746
6752
  channelAccessRemoveTitle: string;
6747
6753
  telegramRemoveDescription: string;
6754
+ discordHeroTitle: string;
6755
+ discordHeroLede: string;
6756
+ discordUnavailable: string;
6757
+ discordPitch: string;
6758
+ discordAddToDiscord: string;
6759
+ discordConnectedLede: string;
6760
+ discordOpen: string;
6761
+ discordDisconnected: string;
6762
+ discordUsersDescription: string;
6763
+ discordUsersEmptyDescription: string;
6764
+ discordUsersLoadError: string;
6765
+ discordAddByIdHint: string;
6766
+ discordAddByIdInvalid: string;
6767
+ discordRemoveDescription: string;
6768
+ mockDiscordThread: string;
6769
+ mockDiscordAsk: string;
6770
+ mockDiscordReply: string;
6748
6771
  otherWaysToConnect: string;
6749
6772
  computerHeroTitle: string;
6750
6773
  computerConnectedTitle: string;
@@ -7490,6 +7513,7 @@ declare const catalog: {
7490
7513
  viewFolderAccess: string;
7491
7514
  myDrive: string;
7492
7515
  allFiles: string;
7516
+ drivesSection: string;
7493
7517
  volumeHint: string;
7494
7518
  teamFolders: string;
7495
7519
  adminSection: string;
@@ -7524,6 +7548,7 @@ declare const catalog: {
7524
7548
  accountStorageIncomplete: string;
7525
7549
  folderInfo: {
7526
7550
  audienceYouAndAdmins: string;
7551
+ audienceAgentUsers: string;
7527
7552
  audienceOwnerAndAdmins: string;
7528
7553
  boxPathHint: string;
7529
7554
  pathCopied: string;
@@ -9284,6 +9309,28 @@ declare const catalog: {
9284
9309
  returnControl: string;
9285
9310
  escape: string;
9286
9311
  };
9312
+ voiceCall: {
9313
+ title: string;
9314
+ call: string;
9315
+ start: string;
9316
+ end: string;
9317
+ connecting: string;
9318
+ listening: string;
9319
+ speaking: string;
9320
+ reconnecting: string;
9321
+ you: string;
9322
+ mute: string;
9323
+ unmute: string;
9324
+ noMicrophone: string;
9325
+ shareScreen: string;
9326
+ stopSharing: string;
9327
+ ended: string;
9328
+ failed: string;
9329
+ lost: string;
9330
+ unavailable: string;
9331
+ callAgain: string;
9332
+ close: string;
9333
+ };
9287
9334
  agentCapabilities: {
9288
9335
  skillsTitle: string;
9289
9336
  skillsDescription: string;
package/dist/i18n/en.js CHANGED
@@ -773,10 +773,6 @@ const catalog = {
773
773
  "name": "Marketplace",
774
774
  "description": "Browse and install skills from community and vendor registries. Sources, updates, and team scopes are still changing."
775
775
  },
776
- "warm_sessions": {
777
- "name": "Warm Sessions",
778
- "description": "Keep one sandbox ready for instant session starts. The idle sandbox uses compute."
779
- },
780
776
  "secrets_egress": {
781
777
  "name": "Network-Enforced Secrets",
782
778
  "description": "Control which tools and destinations can receive project secrets."
@@ -844,6 +840,14 @@ const catalog = {
844
840
  "agent_teams": {
845
841
  "name": "Agent teams",
846
842
  "description": "A lead session starts named teammates that share one task list. Each teammate takes a task, works on it in its own session and tells the lead when it is done. You see every teammate and its tasks under the lead's composer. Messages between sessions work without this flag."
843
+ },
844
+ "voice_call": {
845
+ "name": "Voice calls",
846
+ "description": "Call the session's agent from the session page and talk it through. It hears you, answers in a voice, sees a screen you share, and works in the same session, so the conversation stays in the chat."
847
+ },
848
+ "shared_drives": {
849
+ "name": "Shared drives",
850
+ "description": "Drives the whole team can use: an admin makes a Drive and adds agents to it. Every session of those agents mounts it, and everyone who may use one of them can open it. Off, every person has only My files."
847
851
  }
848
852
  },
849
853
  "channelsSwitch": {
@@ -1202,6 +1206,7 @@ const catalog = {
1202
1206
  "chat": "Chat",
1203
1207
  "slack": "Slack",
1204
1208
  "telegram": "Telegram",
1209
+ "discord": "Discord",
1205
1210
  "teams": "Teams",
1206
1211
  "email": "Email",
1207
1212
  "scheduled": "Scheduled",
@@ -1665,7 +1670,7 @@ const catalog = {
1665
1670
  "sending": "Sending..."
1666
1671
  },
1667
1672
  "unified": {
1668
- "welcome": "Welcome to Kortix CompanyOS",
1673
+ "welcome": "Welcome to {name}",
1669
1674
  "email": "Email",
1670
1675
  "emailPlaceholder": "Your email address",
1671
1676
  "password": "Password",
@@ -4281,6 +4286,7 @@ const catalog = {
4281
4286
  "textedac6130dac7": "Commit a SKILL.md to the repo without a chat session.",
4282
4287
  "textfc73e9ad2dae": "Replied in Slack",
4283
4288
  "text8faf56a14a8d": "Replied in Telegram",
4289
+ "text3416de570ab5": "Replied in Discord",
4284
4290
  "text8ccfe10f2f2d": "Publish to your Teams catalog",
4285
4291
  "text36f6474748b3": "Publishing the app to your Teams catalog…",
4286
4292
  "text45b9df5730ac": "Waiting for a Teams admin to approve the app",
@@ -4517,7 +4523,7 @@ const catalog = {
4517
4523
  "texta5e68dfbff0b": "#d63a37",
4518
4524
  "texta619e901f9c0": "Failed to paste: {value0}",
4519
4525
  "texta63fb2eebd02": "Every tool runs without asking. Only the rules below can stop one.",
4520
- "texta64b1e9803b3": "GitHub stars on kortix-ai/suna",
4526
+ "texta64b1e9803b3": "GitHub stars on kortix-ai/CompanyOS",
4521
4527
  "texta67b04cd5c49": "Worker",
4522
4528
  "texta680491a9229": "Last activity: {value0}",
4523
4529
  "texta6879661926e": "Downloading {value0}…",
@@ -6462,7 +6468,7 @@ const catalog = {
6462
6468
  "createProjectInstead": "Create a new project instead"
6463
6469
  },
6464
6470
  "projectSelector": {
6465
- "welcome": "Welcome to Kortix CompanyOS",
6471
+ "welcome": "Welcome to {name}",
6466
6472
  "welcomeBack": "Welcome back",
6467
6473
  "descriptionNew": "Create your first project, or join one your team shared.",
6468
6474
  "descriptionReturning": "Open a project, or create a new one.",
@@ -6746,6 +6752,23 @@ const catalog = {
6746
6752
  "channelAccessAllowAria": "Allow {name}",
6747
6753
  "channelAccessRemoveTitle": "Remove {name}?",
6748
6754
  "telegramRemoveDescription": "{name} can no longer talk to the bot. To allow them again, add their user ID or allow their next request.",
6755
+ "discordHeroTitle": "Bring your agent to Discord",
6756
+ "discordHeroLede": "Add the Kortix app to your server. Mention it in a channel and the agent answers in a thread. People can also message it directly.",
6757
+ "discordUnavailable": "Discord is not set up on this Kortix deployment.",
6758
+ "discordPitch": "Chat with your agent in your Discord server.",
6759
+ "discordAddToDiscord": "Add to Discord",
6760
+ "discordConnectedLede": "Mention @Kortix in a channel, or message it directly. It answers the people you allow.",
6761
+ "discordOpen": "Open Discord",
6762
+ "discordDisconnected": "Discord disconnected",
6763
+ "discordUsersDescription": "Only these people can talk to the bot. When someone else mentions or messages it, they show up here.",
6764
+ "discordUsersEmptyDescription": "Ask someone to mention or message the bot, then allow their request or add their user ID.",
6765
+ "discordUsersLoadError": "Could not load the Discord users.",
6766
+ "discordAddByIdHint": "The bot replies to anyone it does not know with their user ID.",
6767
+ "discordAddByIdInvalid": "A Discord user ID is a number of 17 to 20 digits, such as 123456789012345678.",
6768
+ "discordRemoveDescription": "{name} can no longer talk to the bot. To allow them again, add their user ID or allow their next request.",
6769
+ "mockDiscordThread": "launch",
6770
+ "mockDiscordAsk": "Did the deploy finish?",
6771
+ "mockDiscordReply": "Yes, 4 minutes ago. All checks are green and the site is live.",
6749
6772
  "otherWaysToConnect": "Other ways to connect",
6750
6773
  "computerHeroTitle": "Bring your agent to your computer",
6751
6774
  "computerConnectedTitle": "{count, plural, one {Your computer is connected} other {# computers are connected}}",
@@ -7453,48 +7476,49 @@ const catalog = {
7453
7476
  "write": "Can edit",
7454
7477
  "manage": "Can share"
7455
7478
  },
7456
- "addAccess": "Add a person, team or agent",
7479
+ "addAccess": "Add an agent",
7457
7480
  "notGrantable": "This folder holds the tree together and can't be shared. Share a folder inside it.",
7458
- "viewOnlyAccess": "Only people who can share this folder can change who has access.",
7481
+ "viewOnlyAccess": "Only project managers can change which agents get this folder.",
7459
7482
  "noGrants": "Nobody has been given access here yet. Project admins can open every folder.",
7460
7483
  "myFolder": "My folder",
7461
7484
  "myFolderHint": "Your own folder: only you and the project's admins can open it, and it is your desktop in your sessions",
7462
7485
  "sharedWithMeHint": "Folders other people shared with you",
7463
7486
  "sessionNoFolders": "No folders are mounted in this session.",
7464
- "folderAccessDescription": "Choose who can open this folder and everything in it. A session gets the folder when its agent, its project or the person who started it has access.",
7487
+ "folderAccessDescription": "Choose which agents get this folder. Every session of a picked agent mounts it, and everyone who may use that agent can open it.",
7465
7488
  "whoCanAccess": "Who can access",
7466
7489
  "whoCanAccessFolder": "Who can access {name}",
7467
- "accessPanelDescription": "People, teams and agents with access get this folder and everything in it.",
7468
- "accessPanelRoot": "Open a folder to choose who can access it. Company is shared with everyone in the project. Each person's own folder opens for them and the project's admins.",
7490
+ "accessPanelDescription": "Agents with access get this folder and everything in it, and so does everyone who may use them.",
7491
+ "accessPanelRoot": "Open a folder to choose which agents get it. Each person's own folder opens for them and the project's admins.",
7469
7492
  "audienceEveryoneDescription": "Everyone who works in this project, and every session in it.",
7470
7493
  "audienceAdmins": "Admins only",
7471
7494
  "audienceAdminsShort": "Project managers can open and share it",
7472
- "audienceAdminsDescription": "Project managers can open and share it. No session gets it until you share it.",
7495
+ "audienceAdminsDescription": "Project managers can open it. No agent gets it until you add one.",
7473
7496
  "audienceOnlyYou": "Only you",
7474
7497
  "audienceOnlyOwner": "Only {name}",
7475
7498
  "audienceOwnerDescription": "A person's own folder opens for them and the project's admins. Each time an admin opens it, its owner can see that.",
7476
- "audienceSpecific": "Specific people, teams or agents",
7477
- "audienceSpecificDescription": "Only the people, teams and agents you pick, plus project managers. An agent gets the folder in every one of its sessions.",
7499
+ "audienceSpecific": "Specific agents",
7500
+ "audienceSpecificDescription": "Every session of the agents you pick mounts it. Everyone who may use one of them can open it, plus project managers.",
7478
7501
  "inheritedEveryoneNote": "Everyone in this project already has access through {path}. Change it there to narrow it.",
7479
7502
  "everyoneCan": "Everyone in this project",
7480
7503
  "alsoNamed": "Also give access to",
7481
- "peopleWithAccess": "People, teams and agents",
7504
+ "peopleWithAccess": "Agents",
7482
7505
  "agentMountsMeta": "Every session of this agent",
7483
7506
  "teamMeta": "Team",
7484
7507
  "levelFor": "Access for {name}",
7485
7508
  "inheritedTitle": "Has access from a folder above",
7486
7509
  "resultEveryone": "Everyone in this project can open this folder.",
7487
7510
  "resultAdmins": "Only project managers can open this folder.",
7488
- "resultSpecific": "{count, plural, one {Only project managers and the one you picked can open this folder.} other {Only project managers and the # you picked can open this folder.}}",
7511
+ "resultSpecific": "{count, plural, one {Project managers and everyone who may use the agent you picked can open this folder.} other {Project managers and everyone who may use the # agents you picked can open this folder.}}",
7489
7512
  "you": "You",
7490
7513
  "manageFolderAccess": "Manage access",
7491
7514
  "viewFolderAccess": "See access",
7492
7515
  "myDrive": "My files",
7493
7516
  "allFiles": "All files",
7517
+ "drivesSection": "Drives",
7494
7518
  "volumeHint": "A separate volume. Sessions mount each one on its own under /drives.",
7495
7519
  "teamFolders": "Team folders",
7496
7520
  "adminSection": "Admin",
7497
- "newTeamFolder": "New team folder",
7521
+ "newTeamFolder": "New folder",
7498
7522
  "audienceQuestion": "Who can open it?",
7499
7523
  "badgeEveryone": "Everyone",
7500
7524
  "badgePeople": "{count, plural, one {# person} other {# people}}",
@@ -7525,6 +7549,7 @@ const catalog = {
7525
7549
  "accountStorageIncomplete": "Some projects could not be measured right now.",
7526
7550
  "folderInfo": {
7527
7551
  "audienceYouAndAdmins": "You and project admins",
7552
+ "audienceAgentUsers": "Everyone who may use {agent}",
7528
7553
  "audienceOwnerAndAdmins": "Owner and admins",
7529
7554
  "boxPathHint": "Where sessions see this folder. Click to copy.",
7530
7555
  "pathCopied": "Copied",
@@ -8146,7 +8171,7 @@ const catalog = {
8146
8171
  "project": {
8147
8172
  "title": "Project setting",
8148
8173
  "label": "My Kortix",
8149
- "help": "New sessions start with My Kortix. Kortix maintains its prompt and tools. To turn it off, set <code>builtin_agents.my_kortix: false</code> in kortix.yaml."
8174
+ "help": "My Kortix is on in this project. Kortix maintains its prompt and tools. To turn it off, delete <code>builtin_agents.my_kortix</code> from kortix.yaml or set it to false."
8150
8175
  }
8151
8176
  },
8152
8177
  "modelView": {
@@ -9285,6 +9310,28 @@ const catalog = {
9285
9310
  "returnControl": "Return control",
9286
9311
  "escape": "Esc"
9287
9312
  },
9313
+ "voiceCall": {
9314
+ "title": "Voice call",
9315
+ "call": "Call",
9316
+ "start": "Start a voice call",
9317
+ "end": "End call",
9318
+ "connecting": "Connecting…",
9319
+ "listening": "Listening",
9320
+ "speaking": "Speaking",
9321
+ "reconnecting": "Reconnecting…",
9322
+ "you": "You",
9323
+ "mute": "Mute microphone",
9324
+ "unmute": "Unmute microphone",
9325
+ "noMicrophone": "No microphone access. Allow the microphone for this site and call again.",
9326
+ "shareScreen": "Share screen",
9327
+ "stopSharing": "Stop sharing screen",
9328
+ "ended": "Call ended",
9329
+ "failed": "Could not start the call",
9330
+ "lost": "Could not reconnect the call",
9331
+ "unavailable": "This session's sandbox started before voice calls were turned on. Calls work from its next start.",
9332
+ "callAgain": "Call again",
9333
+ "close": "Close"
9334
+ },
9288
9335
  "agentCapabilities": {
9289
9336
  "skillsTitle": "Skills",
9290
9337
  "skillsDescription": "Each skill this agent may load. Built-in skills come with Kortix.",
@@ -248,7 +248,7 @@ export const REMAINING_UI_TRANSLATION_KEYS = {
248
248
  'General knowledge worker — full tool access; codes, researches, writes and runs ops end-to-end in an isolated sandbox.': 'textd9d167d882e5',
249
249
  'Get the app for your desktop, your phone, or your terminal.': 'text86522c506bbf',
250
250
  'git push origin main': 'text16f880284c51',
251
- 'GitHub stars on kortix-ai/suna': 'texta64b1e9803b3',
251
+ 'GitHub stars on kortix-ai/CompanyOS': 'texta64b1e9803b3',
252
252
  'Give agents access to outside tools — and reach them from Slack, Teams or email.': 'text5c61792162c9',
253
253
  'Give another app a private address that starts an agent when it sends a request.': 'textf4e707d938c6',
254
254
  Governance: 'text86f8a694159b',
@@ -17,9 +17,13 @@
17
17
  * (`useEnsureSelectedAccount`, `AccountSwitcher`, …), so branding
18
18
  * costs no extra request. It renders nothing itself; `KortixLogo` swaps its
19
19
  * SVG for the org marks, and `BrandingDocumentEffect` (below) swaps the tab
20
- * icon and title once the account resolves. Before that — and on every
21
- * unauthenticated surface — the app is Kortix, by design: there is no account
22
- * to be branded as until someone signs in.
20
+ * icon and title once the account resolves.
21
+ *
22
+ * Before an account resolves — on every signed-out surface, the sign-in page
23
+ * included — and for an account with no branding of its own, the provider
24
+ * serves `instanceBranding`: a self-host instance's own branding
25
+ * (`GET /v1/access/branding`), read by the root layout on the server so it is
26
+ * in the first paint. It is null on the Kortix cloud, which is then Kortix.
23
27
  */
24
28
  import { type AccountBranding } from '@kortix/sdk';
25
29
  /**
@@ -29,11 +33,18 @@ import { type AccountBranding } from '@kortix/sdk';
29
33
  * account. One scope at a time: these surfaces never nest.
30
34
  */
31
35
  export declare function useBrandingScope(accountId: string | null | undefined): void;
32
- export declare function BrandingProvider({ children }: {
36
+ export declare function BrandingProvider({ children, instanceBranding, }: {
33
37
  children: React.ReactNode;
38
+ /** The instance's branding: the fallback when no account branding applies. */
39
+ instanceBranding?: AccountBranding | null;
34
40
  }): import("react").JSX.Element;
35
41
  /**
36
42
  * The active account's branding, or `null` for default Kortix. Safe outside
37
43
  * the provider (tests, isolated renders): resolves to `null`.
38
44
  */
39
45
  export declare function useBranding(): AccountBranding | null;
46
+ /**
47
+ * The product name to show in copy ("Welcome to {name}"): the branded name,
48
+ * else "Kortix CompanyOS". A branding with a logo but no name keeps Kortix.
49
+ */
50
+ export declare function useBrandName(): string;
@@ -44,18 +44,16 @@ export function useBrandingScope(accountId) {
44
44
  return () => setBrandingScope({ scopedAccountId: null });
45
45
  }, [accountId]);
46
46
  }
47
- export function BrandingProvider({ children }) {
47
+ export function BrandingProvider({ children, instanceBranding = null, }) {
48
48
  const selectedAccountId = useCurrentAccountStore((s) => s.selectedAccountId);
49
49
  const { scopedAccountId } = useBrandingScopeState();
50
50
  // Same hook as every other consumer → one user-scoped fetch, shared cache.
51
51
  const accountsQuery = useAccountsList();
52
52
  const branding = useMemo(() => {
53
53
  const accounts = accountsQuery.data;
54
- if (!accounts?.length)
55
- return null;
56
- const activeId = scopedAccountId ?? selectedAccountId ?? accounts[0]?.account_id ?? null;
57
- const active = accounts.find((a) => a.account_id === activeId) ?? null;
58
- const b = active?.branding ?? null;
54
+ const activeId = scopedAccountId ?? selectedAccountId ?? accounts?.[0]?.account_id ?? null;
55
+ const active = accounts?.find((a) => a.account_id === activeId) ?? null;
56
+ const b = active?.branding ?? instanceBranding;
59
57
  if (!b)
60
58
  return null;
61
59
  // Normalize once so consumers can rely on every slot being present.
@@ -68,7 +66,7 @@ export function BrandingProvider({ children }) {
68
66
  icon_dark_url: b.icon_dark_url ?? null,
69
67
  favicon_dark_url: b.favicon_dark_url ?? null,
70
68
  };
71
- }, [accountsQuery.data, scopedAccountId, selectedAccountId]);
69
+ }, [accountsQuery.data, scopedAccountId, selectedAccountId, instanceBranding]);
72
70
  return (_jsxs(BrandingContext.Provider, { value: branding, children: [_jsx(BrandingDocumentEffect, { branding: branding }), children] }));
73
71
  }
74
72
  /**
@@ -78,6 +76,13 @@ export function BrandingProvider({ children }) {
78
76
  export function useBranding() {
79
77
  return useContext(BrandingContext);
80
78
  }
79
+ /**
80
+ * The product name to show in copy ("Welcome to {name}"): the branded name,
81
+ * else "Kortix CompanyOS". A branding with a logo but no name keeps Kortix.
82
+ */
83
+ export function useBrandName() {
84
+ return useBranding()?.app_name ?? siteMetadata.name;
85
+ }
81
86
  // ─── Document effect: favicon + title ───────────────────────────────────────
82
87
  /** What Next rendered for each icon link before we touched it, kept OFF the
83
88
  * DOM (a WeakMap, not data-attributes) so a restore never reads back a
@@ -2,6 +2,7 @@
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { EnvelopeSimpleIcon, MonitorIcon, PlugIcon } from '@phosphor-icons/react';
4
4
  import { useState } from 'react';
5
+ import { Discord } from '../icons/discord.js';
5
6
  import { MicrosoftTeams } from '../icons/microsoft-teams.js';
6
7
  import { Slack } from '../icons/slack.js';
7
8
  import { Telegram } from '../icons/telegram.js';
@@ -25,6 +26,7 @@ export const NATIVE_MARK = {
25
26
  slack: { Mark: Slack, brand: true },
26
27
  teams: { Mark: MicrosoftTeams, brand: true },
27
28
  telegram: { Mark: Telegram, brand: true },
29
+ discord: { Mark: Discord, brand: true },
28
30
  email: { Mark: EnvelopeSimpleIcon, brand: false },
29
31
  computer: { Mark: MonitorIcon, brand: false },
30
32
  };
@@ -10,6 +10,7 @@ const LABEL = {
10
10
  slack: 'Slack',
11
11
  teams: 'Microsoft Teams',
12
12
  telegram: 'Telegram',
13
+ discord: 'Discord',
13
14
  email: 'Email',
14
15
  computer: 'Computer',
15
16
  };
@@ -1,6 +1,6 @@
1
1
  /** @internal Kortix apps only. No semver: it may change in any release. */
2
- import { type EmailDomain, type EmailDomainList, type EmailDomainResult, type EmailInstallation, type EmailMode, type EmailSenderPolicy, type SlackInstallation, type SlackMode, type ConnectTelegramInput, type TelegramInstallation, type ChannelAccessList, type ChannelAccessPlatform, type ChannelUser } from '@kortix/sdk';
3
- export type { EmailDomain, EmailDomainList, EmailDomainResult, EmailInstallation, EmailMode, EmailSenderPolicy, SlackInstallation, SlackMode, TelegramInstallation, ChannelAccessPlatform, ChannelUser, };
2
+ import { type EmailDomain, type EmailDomainList, type EmailDomainResult, type EmailInstallation, type EmailMode, type EmailSenderPolicy, type SlackInstallation, type SlackMode, type ConnectTelegramInput, type TelegramInstallation, type DiscordInstallation, type DiscordMode, type ChannelAccessList, type ChannelAccessPlatform, type ChannelUser } from '@kortix/sdk';
3
+ export type { EmailDomain, EmailDomainList, EmailDomainResult, EmailInstallation, EmailMode, EmailSenderPolicy, SlackInstallation, SlackMode, TelegramInstallation, DiscordInstallation, DiscordMode, ChannelAccessPlatform, ChannelUser, };
4
4
  export declare function useSlackInstall(projectId: string | null): import("@tanstack/react-query").UseQueryResult<SlackInstallation | null, Error>;
5
5
  interface ConnectInput {
6
6
  projectId: string;
@@ -74,3 +74,8 @@ export declare const useDismissChannelAccessRequest: (platform: ChannelAccessPla
74
74
  userId: string;
75
75
  }, unknown>;
76
76
  export declare function useDisconnectTelegram(): import("@tanstack/react-query").UseMutationResult<void, Error, string, unknown>;
77
+ /** Whether this deployment has the Kortix Discord application, and the "Add to Discord" link. */
78
+ export declare function useDiscordMode(projectId: string | null): import("@tanstack/react-query").UseQueryResult<DiscordMode, Error>;
79
+ /** The project's Discord server. Pass null to keep the query off. */
80
+ export declare function useDiscordInstall(projectId: string | null): import("@tanstack/react-query").UseQueryResult<DiscordInstallation | null, Error>;
81
+ export declare function useDisconnectDiscord(): import("@tanstack/react-query").UseMutationResult<void, Error, string, unknown>;
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { addEmailDomain, connectEmail, listEmailDomains, verifyEmailDomain, connectSlack, connectTelegram, disconnectEmail, disconnectSlack, disconnectTelegram, getEmailInstallation, getEmailMode, getSlackInstallation, getSlackManifest, getSlackMode, getTelegramInstallation, getChannelUserPhoto, listChannelUsers, allowChannelUser, removeChannelUser, dismissChannelAccessRequest, updateEmailPolicy, } from '@kortix/sdk';
2
+ import { addEmailDomain, connectEmail, listEmailDomains, verifyEmailDomain, connectSlack, connectTelegram, disconnectEmail, disconnectSlack, disconnectTelegram, getEmailInstallation, getEmailMode, getSlackInstallation, getSlackManifest, getSlackMode, getTelegramInstallation, getDiscordInstallation, getDiscordMode, disconnectDiscord, getChannelUserPhoto, listChannelUsers, allowChannelUser, removeChannelUser, dismissChannelAccessRequest, updateEmailPolicy, } from '@kortix/sdk';
3
3
  import { qk } from '@kortix/sdk/react';
4
4
  import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
5
5
  const key = (projectId) => ['channels', 'slack-install', projectId ?? 'none'];
@@ -197,3 +197,33 @@ export function useDisconnectTelegram() {
197
197
  },
198
198
  });
199
199
  }
200
+ const discordKey = (projectId) => installKey('discord', projectId);
201
+ /** Whether this deployment has the Kortix Discord application, and the "Add to Discord" link. */
202
+ export function useDiscordMode(projectId) {
203
+ return useQuery({
204
+ queryKey: ['channels', 'discord-mode', projectId ?? 'none'],
205
+ enabled: !!projectId,
206
+ staleTime: 5 * 60_000,
207
+ queryFn: () => (projectId ? getDiscordMode(projectId) : { available: false, install_url: null }),
208
+ });
209
+ }
210
+ /** The project's Discord server. Pass null to keep the query off. */
211
+ export function useDiscordInstall(projectId) {
212
+ return useQuery({
213
+ queryKey: discordKey(projectId),
214
+ enabled: !!projectId,
215
+ staleTime: 30_000,
216
+ queryFn: () => (projectId ? getDiscordInstallation(projectId) : null),
217
+ });
218
+ }
219
+ export function useDisconnectDiscord() {
220
+ const qc = useQueryClient();
221
+ return useMutation({
222
+ mutationFn: (projectId) => disconnectDiscord(projectId),
223
+ onSuccess: (_data, projectId) => {
224
+ qc.invalidateQueries({ queryKey: discordKey(projectId) });
225
+ qc.removeQueries({ queryKey: usersKey('discord', projectId) });
226
+ qc.invalidateQueries({ queryKey: qk.project.connectors(projectId) });
227
+ },
228
+ });
229
+ }
@@ -8,17 +8,9 @@ import { type PendingSessionPrompt, type SessionConnectorBindingsInput } from '@
8
8
  * A session is persisted only after an explicit user action. The route bundle
9
9
  * and `/start` are prefetched before navigation.
10
10
  *
11
- * The session id comes from one of two places. When the project shell has a warm
12
- * session ready that fits this send (`use-warm-project-session.ts`) this takes
13
- * it and the SERVER owns the id. Otherwise the id is minted client-side and
14
- * created as before. `takeWarmSessionEntry` returns null whenever nothing
15
- * suitable is held, so the create path below remains the authority on billing
16
- * and connector requirements — the user sees the same outcome
17
- * either way. When it DOES fit, `onReady` also seeds the sessions-list cache
18
- * with the entry's server row (JAY-599/T21, `warm-session-seed.ts`), so the
19
- * sidebar shows the session the instant this tab sends — it does not wait for
20
- * the server's own marker-drop (`POST .../start`) to round-trip back through
21
- * the reconciling `invalidateQueries` below.
11
+ * The session id is minted client-side, so a create that times out can ask the
12
+ * server whether it committed instead of creating a second session. The create
13
+ * path is the authority on billing and connector requirements.
22
14
  *
23
15
  * `onNavigate(sessionId)` runs synchronously right before the push — use it
24
16
  * for entry-point-specific side effects (open a tab, close a drawer, timing
@@ -41,7 +33,7 @@ import { type PendingSessionPrompt, type SessionConnectorBindingsInput } from '@
41
33
  /**
42
34
  * Options for a new-session start.
43
35
  * `create.space_id` files the session in a channel or DM (`project_channels`).
44
- * It never claims a warm session, shows no toast, and does not navigate: the
36
+ * It shows no toast and does not navigate: the
45
37
  * space view stays and `onNavigate(sessionId)` opens the thread beside it.
46
38
  * `agent_name` chooses the session's boot agent. Later prompts can name another
47
39
  * agent; the API re-scopes its grants before forwarding the prompt.
@@ -56,8 +48,8 @@ import { type PendingSessionPrompt, type SessionConnectorBindingsInput } from '@
56
48
  export type NewProjectSessionOpts = {
57
49
  onNavigate?: (sessionId: string) => void;
58
50
  /**
59
- * Runs with the client-minted id right before the create POST (never on the
60
- * warm path). A space draws its optimistic thread row here; `onError` takes it back.
51
+ * Runs with the client-minted id right before the create POST. A space draws
52
+ * its optimistic thread row here; `onError` takes it back.
61
53
  */
62
54
  onCreating?: (sessionId: string) => void;
63
55
  onError?: () => void;