@kortix/ui 0.14.16 → 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.
- package/README.md +2 -2
- package/dist/_vendor/kortix-shared.js +38 -2
- package/dist/_vendor/shared/artifact-annotations.d.ts +126 -1
- package/dist/_vendor/shared/artifact-comments.d.ts +30 -1
- package/dist/_vendor/shared/channel-descriptors.d.ts +20 -1
- package/dist/_vendor/shared/channel-message.d.ts +1 -1
- package/dist/_vendor/shared/my-kortix-agent.d.ts +1 -1
- package/dist/_vendor/shared/space-slug.d.ts +3 -4
- package/dist/_vendor/shared/utils/ambiguous-write.d.ts +3 -3
- package/dist/customize/agents/agent-instructions.d.ts +8 -0
- package/dist/customize/agents/agent-instructions.js +38 -12
- package/dist/customize/agents/agent-overview.d.ts +6 -3
- package/dist/customize/agents/agent-overview.js +8 -2
- package/dist/customize/agents/agent-page-chrome.d.ts +45 -27
- package/dist/customize/agents/agent-page-chrome.js +60 -37
- package/dist/customize/agents/agent-page.js +88 -99
- package/dist/customize/agents/agent-tabs.d.ts +15 -14
- package/dist/customize/agents/agent-tabs.js +19 -16
- package/dist/customize/agents/agents-page.js +8 -6
- package/dist/customize/connectors/detail/account-info.js +1 -1
- package/dist/customize/project-settings/project-admin-sections.d.ts +6 -2
- package/dist/customize/project-settings/project-admin-sections.js +5 -3
- package/dist/customize/project-settings/project-settings-sections.js +1 -1
- package/dist/customize/sections/component/channel-access-panel.js +16 -0
- package/dist/customize/sections/component/channel-mocks.d.ts +5 -0
- package/dist/customize/sections/component/channel-mocks.js +14 -2
- package/dist/customize/sections/component/discord-channel-row.d.ts +6 -0
- package/dist/customize/sections/component/discord-channel-row.js +48 -0
- package/dist/customize/sections/gateway-access-tab.js +1 -1
- package/dist/customize/sections/view/channels-view.js +18 -1
- package/dist/customize/sections/view/git-view.js +2 -2
- package/dist/customize/sections/view/secret-delivery.js +1 -1
- package/dist/customize/sections/view/secrets-view.js +1 -1
- package/dist/customize/settings/rail.js +2 -2
- package/dist/customize/settings/tabs/experimental-tab.d.ts +2 -2
- package/dist/customize/settings/tabs/experimental-tab.js +3 -6
- package/dist/customize/settings/tabs/general-tab.js +5 -4
- package/dist/customize/shared/capability-library.js +19 -22
- package/dist/customize/shared/channels-switch-dialog.d.ts +4 -8
- package/dist/customize/shared/channels-switch-dialog.js +5 -16
- package/dist/customize/shared/customize-tab-bar.d.ts +1 -2
- package/dist/customize/shared/customize-tab-bar.js +10 -11
- package/dist/customize/shared/feature-gate-screen.js +5 -7
- package/dist/files/drives/drive-path-param.d.ts +4 -0
- package/dist/files/drives/drive-path-param.js +50 -0
- package/dist/files/index.d.ts +1 -0
- package/dist/files/index.js +1 -0
- package/dist/files/project/components/drive-create-dialog.js +3 -3
- package/dist/i18n/en.d.ts +99 -18
- package/dist/i18n/en.js +125 -44
- package/dist/i18n/ui-catalog/remaining-ui-translation-keys.generated.js +1 -1
- package/dist/internal/branding/branding-provider.d.ts +15 -4
- package/dist/internal/branding/branding-provider.js +12 -7
- package/dist/internal/connector-logo/connector-logo.js +2 -0
- package/dist/internal/connector-logo/connector-mark-files.js +1 -0
- package/dist/internal/hooks/channels/use-channels-installations.d.ts +7 -2
- package/dist/internal/hooks/channels/use-channels-installations.js +31 -1
- package/dist/internal/hooks/projects/use-new-project-session.d.ts +6 -14
- package/dist/internal/hooks/projects/use-new-project-session.js +12 -97
- package/dist/internal/hooks/use-notification-center.d.ts +11 -8
- package/dist/internal/hooks/use-notification-center.js +22 -10
- package/dist/internal/icons/discord.d.ts +9 -0
- package/dist/internal/icons/discord.js +9 -0
- package/dist/internal/layout/connect-mcp-modal.js +1 -1
- package/dist/internal/lib/browser-noise/rules/expected-states.js +1 -1
- package/dist/internal/lib/error-handler.js +1 -1
- package/dist/internal/lib/use-project-feature-flags.js +5 -3
- package/dist/markdown/doc-editor/doc-menus.d.ts +6 -0
- package/dist/markdown/doc-editor/doc-menus.js +74 -9
- package/dist/markdown/markdown-frontmatter.d.ts +0 -3
- package/dist/markdown/markdown-frontmatter.js +45 -5
- package/dist/session/actions/project-session-list-helpers.d.ts +4 -14
- package/dist/session/actions/project-session-list-helpers.js +5 -16
- package/dist/session/actions/session-label.d.ts +5 -9
- package/dist/session/actions/session-label.js +6 -10
- package/dist/session/participants/session-participants.d.ts +7 -5
- package/dist/session/participants/session-participants.js +11 -7
- package/dist/session/status/provisioning-failure.d.ts +26 -6
- package/dist/session/status/provisioning-failure.js +39 -12
- package/dist/session/thread/optimistic-turn.js +11 -2
- package/dist/session/thread/session-chat.js +73 -25
- package/dist/session/thread/transcript.d.ts +9 -0
- package/dist/session/thread/transcript.js +44 -5
- package/dist/session/tool/tools/channel-send-card.js +1 -0
- package/dist/session/turn/channel-brand.js +4 -0
- package/dist/session/turn/message-author.d.ts +13 -8
- package/dist/session/turn/message-author.js +34 -16
- package/dist/session/turn/peer-message-row.js +24 -6
- package/dist/session/turn/user-message.js +1 -1
- package/dist/session/voice/call-audio.d.ts +32 -0
- package/dist/session/voice/call-audio.js +146 -0
- package/dist/session/voice/screen-share.d.ts +24 -0
- package/dist/session/voice/screen-share.js +75 -0
- package/dist/session/voice/use-voice-call.d.ts +15 -0
- package/dist/session/voice/use-voice-call.js +220 -0
- package/dist/session/voice/voice-call-bar.d.ts +4 -0
- package/dist/session/voice/voice-call-bar.js +39 -0
- package/dist/session/voice/voice-call-state.d.ts +96 -0
- package/dist/session/voice/voice-call-state.js +103 -0
- package/dist/session/voice/voice-call-store.d.ts +12 -0
- package/dist/session/voice/voice-call-store.js +10 -0
- package/dist/session/voice/voice-call-url.d.ts +24 -0
- package/dist/session/voice/voice-call-url.js +33 -0
- package/dist/session/voice/voice-call.d.ts +15 -0
- package/dist/session/voice/voice-call.js +54 -0
- package/dist/styles.css +1 -1
- package/dist/workspace/admin/project-admin-dashboard.js +9 -4
- package/dist/workspace/layout/project-home.js +13 -14
- package/dist/workspace/sidebar/footer/project-manifest-issues-alert.d.ts +1 -1
- package/dist/workspace/sidebar/footer/project-manifest-issues-alert.js +4 -3
- package/dist/workspace/sidebar/project-session-list.js +14 -26
- package/dist/workspace/sidebar/session-brief-hover-card.d.ts +0 -3
- package/dist/workspace/sidebar/session-brief-hover-card.js +0 -3
- package/dist/workspace/sidebar/session-filter-menu.js +1 -0
- package/dist/workspace/sidebar/session-grouping.d.ts +4 -0
- package/dist/workspace/sidebar/session-grouping.js +2 -0
- package/dist/workspace/sidebar/session-source-icons.js +2 -0
- package/dist/workspace/space/space-page.js +2 -2
- package/package.json +9 -9
- package/skills/kortix-ui/SKILL.md +2 -2
- package/skills/kortix-ui/references/custom-dashboard.md +1 -1
- package/skills/kortix-ui/references/modules.md +1 -1
- package/dist/customize/agents/agent-section-rail.d.ts +0 -21
- package/dist/customize/agents/agent-section-rail.js +0 -23
- package/dist/internal/hooks/projects/use-warm-project-session.d.ts +0 -270
- package/dist/internal/hooks/projects/use-warm-project-session.js +0 -362
- package/dist/internal/hooks/projects/warm-session-seed.d.ts +0 -66
- package/dist/internal/hooks/projects/warm-session-seed.js +0 -80
- package/dist/internal/hooks/projects/warm-session-taken-registry.d.ts +0 -61
- package/dist/internal/hooks/projects/warm-session-taken-registry.js +0 -141
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."
|
|
@@ -801,14 +797,6 @@ const catalog = {
|
|
|
801
797
|
"name": "Composio event triggers",
|
|
802
798
|
"description": "Start an agent when something happens in a connected app: a new email, a pull request, a calendar event. Events come from Composio. Kortix also checks your connected apps itself."
|
|
803
799
|
},
|
|
804
|
-
"volumes": {
|
|
805
|
-
"name": "Volumes",
|
|
806
|
-
"description": "Shared Files for this project."
|
|
807
|
-
},
|
|
808
|
-
"drives": {
|
|
809
|
-
"name": "Drive",
|
|
810
|
-
"description": "Shared folders that stay in sync with sessions: your own drive, one per agent, and company drives an admin attaches to the project. New sessions see them under /drives."
|
|
811
|
-
},
|
|
812
800
|
"session_log_restore": {
|
|
813
801
|
"name": "Session log restore",
|
|
814
802
|
"description": "Rebuilds a session from its saved session log when its computer lost the conversation. Kortix enables it per project."
|
|
@@ -852,6 +840,14 @@ const catalog = {
|
|
|
852
840
|
"agent_teams": {
|
|
853
841
|
"name": "Agent teams",
|
|
854
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."
|
|
855
851
|
}
|
|
856
852
|
},
|
|
857
853
|
"channelsSwitch": {
|
|
@@ -1210,6 +1206,7 @@ const catalog = {
|
|
|
1210
1206
|
"chat": "Chat",
|
|
1211
1207
|
"slack": "Slack",
|
|
1212
1208
|
"telegram": "Telegram",
|
|
1209
|
+
"discord": "Discord",
|
|
1213
1210
|
"teams": "Teams",
|
|
1214
1211
|
"email": "Email",
|
|
1215
1212
|
"scheduled": "Scheduled",
|
|
@@ -1390,6 +1387,17 @@ const catalog = {
|
|
|
1390
1387
|
"label": "Restart session",
|
|
1391
1388
|
"pending": "Restarting…",
|
|
1392
1389
|
"ownerOnly": "Only the session owner or a project manager can restart this session."
|
|
1390
|
+
},
|
|
1391
|
+
"image": {
|
|
1392
|
+
"title": "Preparing the sandbox image",
|
|
1393
|
+
"states": {
|
|
1394
|
+
"resolving": "Choosing the image for this session.",
|
|
1395
|
+
"serving_last_ready": "Starting from the last ready image. The new one builds in the background.",
|
|
1396
|
+
"waiting_for_build": "The first image for this project is building. The session starts when it is ready.",
|
|
1397
|
+
"building": "Building the first image for this project. This happens once and takes a few minutes.",
|
|
1398
|
+
"copying_to_region": "Copying the image to this session's region.",
|
|
1399
|
+
"waiting_for_provider": "The image is finishing. The session starts when it is ready."
|
|
1400
|
+
}
|
|
1393
1401
|
}
|
|
1394
1402
|
},
|
|
1395
1403
|
"sessionDelete": {
|
|
@@ -1662,7 +1670,7 @@ const catalog = {
|
|
|
1662
1670
|
"sending": "Sending..."
|
|
1663
1671
|
},
|
|
1664
1672
|
"unified": {
|
|
1665
|
-
"welcome": "Welcome to
|
|
1673
|
+
"welcome": "Welcome to {name}",
|
|
1666
1674
|
"email": "Email",
|
|
1667
1675
|
"emailPlaceholder": "Your email address",
|
|
1668
1676
|
"password": "Password",
|
|
@@ -4278,6 +4286,7 @@ const catalog = {
|
|
|
4278
4286
|
"textedac6130dac7": "Commit a SKILL.md to the repo without a chat session.",
|
|
4279
4287
|
"textfc73e9ad2dae": "Replied in Slack",
|
|
4280
4288
|
"text8faf56a14a8d": "Replied in Telegram",
|
|
4289
|
+
"text3416de570ab5": "Replied in Discord",
|
|
4281
4290
|
"text8ccfe10f2f2d": "Publish to your Teams catalog",
|
|
4282
4291
|
"text36f6474748b3": "Publishing the app to your Teams catalog…",
|
|
4283
4292
|
"text45b9df5730ac": "Waiting for a Teams admin to approve the app",
|
|
@@ -4514,7 +4523,7 @@ const catalog = {
|
|
|
4514
4523
|
"texta5e68dfbff0b": "#d63a37",
|
|
4515
4524
|
"texta619e901f9c0": "Failed to paste: {value0}",
|
|
4516
4525
|
"texta63fb2eebd02": "Every tool runs without asking. Only the rules below can stop one.",
|
|
4517
|
-
"texta64b1e9803b3": "GitHub stars on kortix-ai/
|
|
4526
|
+
"texta64b1e9803b3": "GitHub stars on kortix-ai/CompanyOS",
|
|
4518
4527
|
"texta67b04cd5c49": "Worker",
|
|
4519
4528
|
"texta680491a9229": "Last activity: {value0}",
|
|
4520
4529
|
"texta6879661926e": "Downloading {value0}…",
|
|
@@ -6459,7 +6468,7 @@ const catalog = {
|
|
|
6459
6468
|
"createProjectInstead": "Create a new project instead"
|
|
6460
6469
|
},
|
|
6461
6470
|
"projectSelector": {
|
|
6462
|
-
"welcome": "Welcome to
|
|
6471
|
+
"welcome": "Welcome to {name}",
|
|
6463
6472
|
"welcomeBack": "Welcome back",
|
|
6464
6473
|
"descriptionNew": "Create your first project, or join one your team shared.",
|
|
6465
6474
|
"descriptionReturning": "Open a project, or create a new one.",
|
|
@@ -6743,6 +6752,23 @@ const catalog = {
|
|
|
6743
6752
|
"channelAccessAllowAria": "Allow {name}",
|
|
6744
6753
|
"channelAccessRemoveTitle": "Remove {name}?",
|
|
6745
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.",
|
|
6746
6772
|
"otherWaysToConnect": "Other ways to connect",
|
|
6747
6773
|
"computerHeroTitle": "Bring your agent to your computer",
|
|
6748
6774
|
"computerConnectedTitle": "{count, plural, one {Your computer is connected} other {# computers are connected}}",
|
|
@@ -7450,52 +7476,52 @@ const catalog = {
|
|
|
7450
7476
|
"write": "Can edit",
|
|
7451
7477
|
"manage": "Can share"
|
|
7452
7478
|
},
|
|
7453
|
-
"addAccess": "Add
|
|
7479
|
+
"addAccess": "Add an agent",
|
|
7454
7480
|
"notGrantable": "This folder holds the tree together and can't be shared. Share a folder inside it.",
|
|
7455
|
-
"viewOnlyAccess": "Only
|
|
7456
|
-
"noGrants": "Nobody has been given access here yet. Project
|
|
7481
|
+
"viewOnlyAccess": "Only project managers can change which agents get this folder.",
|
|
7482
|
+
"noGrants": "Nobody has been given access here yet. Project admins can open every folder.",
|
|
7457
7483
|
"myFolder": "My folder",
|
|
7458
|
-
"myFolderHint": "Your own folder:
|
|
7484
|
+
"myFolderHint": "Your own folder: only you and the project's admins can open it, and it is your desktop in your sessions",
|
|
7459
7485
|
"sharedWithMeHint": "Folders other people shared with you",
|
|
7460
7486
|
"sessionNoFolders": "No folders are mounted in this session.",
|
|
7461
|
-
"folderAccessDescription": "Choose
|
|
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.",
|
|
7462
7488
|
"whoCanAccess": "Who can access",
|
|
7463
7489
|
"whoCanAccessFolder": "Who can access {name}",
|
|
7464
|
-
"accessPanelDescription": "
|
|
7465
|
-
"accessPanelRoot": "Open a folder to choose
|
|
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.",
|
|
7466
7492
|
"audienceEveryoneDescription": "Everyone who works in this project, and every session in it.",
|
|
7467
7493
|
"audienceAdmins": "Admins only",
|
|
7468
7494
|
"audienceAdminsShort": "Project managers can open and share it",
|
|
7469
|
-
"audienceAdminsDescription": "Project managers can open
|
|
7495
|
+
"audienceAdminsDescription": "Project managers can open it. No agent gets it until you add one.",
|
|
7470
7496
|
"audienceOnlyYou": "Only you",
|
|
7471
7497
|
"audienceOnlyOwner": "Only {name}",
|
|
7472
|
-
"audienceOwnerDescription": "A person's own folder
|
|
7473
|
-
"audienceSpecific": "Specific
|
|
7474
|
-
"audienceSpecificDescription": "
|
|
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.",
|
|
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.",
|
|
7475
7501
|
"inheritedEveryoneNote": "Everyone in this project already has access through {path}. Change it there to narrow it.",
|
|
7476
7502
|
"everyoneCan": "Everyone in this project",
|
|
7477
7503
|
"alsoNamed": "Also give access to",
|
|
7478
|
-
"peopleWithAccess": "
|
|
7504
|
+
"peopleWithAccess": "Agents",
|
|
7479
7505
|
"agentMountsMeta": "Every session of this agent",
|
|
7480
7506
|
"teamMeta": "Team",
|
|
7481
7507
|
"levelFor": "Access for {name}",
|
|
7482
7508
|
"inheritedTitle": "Has access from a folder above",
|
|
7483
7509
|
"resultEveryone": "Everyone in this project can open this folder.",
|
|
7484
7510
|
"resultAdmins": "Only project managers can open this folder.",
|
|
7485
|
-
"resultSpecific": "{count, plural, one {
|
|
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.}}",
|
|
7486
7512
|
"you": "You",
|
|
7487
7513
|
"manageFolderAccess": "Manage access",
|
|
7488
7514
|
"viewFolderAccess": "See access",
|
|
7489
7515
|
"myDrive": "My files",
|
|
7490
7516
|
"allFiles": "All files",
|
|
7517
|
+
"drivesSection": "Drives",
|
|
7491
7518
|
"volumeHint": "A separate volume. Sessions mount each one on its own under /drives.",
|
|
7492
7519
|
"teamFolders": "Team folders",
|
|
7493
7520
|
"adminSection": "Admin",
|
|
7494
|
-
"newTeamFolder": "New
|
|
7521
|
+
"newTeamFolder": "New folder",
|
|
7495
7522
|
"audienceQuestion": "Who can open it?",
|
|
7496
7523
|
"badgeEveryone": "Everyone",
|
|
7497
7524
|
"badgePeople": "{count, plural, one {# person} other {# people}}",
|
|
7498
|
-
"privateNote": "Only you can open My files, not even admins. Share a folder to give someone access.",
|
|
7499
7525
|
"noTeamFolders": "No team folders yet.",
|
|
7500
7526
|
"sessionFilesName": "Files",
|
|
7501
7527
|
"sessionFilesHint": "Folders it can open",
|
|
@@ -7520,7 +7546,22 @@ const catalog = {
|
|
|
7520
7546
|
"accountStorageTitle": "Files storage",
|
|
7521
7547
|
"accountStorageDescription": "What each project's Files hold. Your plan allows {project} per project and {account} across all projects.",
|
|
7522
7548
|
"accountStorageEmpty": "No project holds files yet.",
|
|
7523
|
-
"accountStorageIncomplete": "Some projects could not be measured right now."
|
|
7549
|
+
"accountStorageIncomplete": "Some projects could not be measured right now.",
|
|
7550
|
+
"folderInfo": {
|
|
7551
|
+
"audienceYouAndAdmins": "You and project admins",
|
|
7552
|
+
"audienceAgentUsers": "Everyone who may use {agent}",
|
|
7553
|
+
"audienceOwnerAndAdmins": "Owner and admins",
|
|
7554
|
+
"boxPathHint": "Where sessions see this folder. Click to copy.",
|
|
7555
|
+
"pathCopied": "Copied",
|
|
7556
|
+
"projectAdmins": "Project admins",
|
|
7557
|
+
"adminsOpenRecorded": "Can open it. You see each time they do.",
|
|
7558
|
+
"openedByAdmins": "Opened by admins",
|
|
7559
|
+
"noAdminOpens": "No admin has opened this folder."
|
|
7560
|
+
},
|
|
7561
|
+
"folderTree": "Folders",
|
|
7562
|
+
"treeYou": "{name} (You)",
|
|
7563
|
+
"treeExpand": "Open {name}",
|
|
7564
|
+
"treeCollapse": "Close {name}"
|
|
7524
7565
|
},
|
|
7525
7566
|
"genui": {
|
|
7526
7567
|
"showData": "Show data",
|
|
@@ -8130,7 +8171,7 @@ const catalog = {
|
|
|
8130
8171
|
"project": {
|
|
8131
8172
|
"title": "Project setting",
|
|
8132
8173
|
"label": "My Kortix",
|
|
8133
|
-
"help": "
|
|
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."
|
|
8134
8175
|
}
|
|
8135
8176
|
},
|
|
8136
8177
|
"modelView": {
|
|
@@ -8339,7 +8380,7 @@ const catalog = {
|
|
|
8339
8380
|
"edit": "Edit",
|
|
8340
8381
|
"delete": "Delete",
|
|
8341
8382
|
"deleteTitle": "Delete comment?",
|
|
8342
|
-
"deleteDescription": "
|
|
8383
|
+
"deleteDescription": "Its text is removed for everyone, and “Comment deleted” stays in its place. This cannot be undone.",
|
|
8343
8384
|
"commentDeleted": "Comment deleted",
|
|
8344
8385
|
"threadDeleted": "This thread was deleted.",
|
|
8345
8386
|
"resolve": "Resolve",
|
|
@@ -8350,9 +8391,6 @@ const catalog = {
|
|
|
8350
8391
|
"quoteLabel": "Selected passage",
|
|
8351
8392
|
"waitingForPerson": "Waiting for a person",
|
|
8352
8393
|
"deliveryFailed": "Could not send feedback to the agent.",
|
|
8353
|
-
"sendToAgent": "Send to agent ({count})",
|
|
8354
|
-
"sendExisting": "This Artifact’s session",
|
|
8355
|
-
"sendNew": "A new {agent} session",
|
|
8356
8394
|
"sendFailed": "Could not send these comments. Try again.",
|
|
8357
8395
|
"retrySend": "Retry send ({count})",
|
|
8358
8396
|
"discardSend": "Discard and use latest comments",
|
|
@@ -8365,8 +8403,9 @@ const catalog = {
|
|
|
8365
8403
|
"contextLoadError": "Could not load comment permissions.",
|
|
8366
8404
|
"activityLoadError": "Could not load activity.",
|
|
8367
8405
|
"retry": "Try again",
|
|
8406
|
+
"sendAgainTo": "Send again to {agent}",
|
|
8368
8407
|
"noComments": "No open comments",
|
|
8369
|
-
"noCommentsHint": "Select a passage or
|
|
8408
|
+
"noCommentsHint": "Select a passage to comment on it, or start a new comment.",
|
|
8370
8409
|
"noResolved": "No resolved comments",
|
|
8371
8410
|
"noResolvedHint": "Resolved threads appear here.",
|
|
8372
8411
|
"noAllComments": "No comments yet",
|
|
@@ -8383,7 +8422,7 @@ const catalog = {
|
|
|
8383
8422
|
"preparingSelection": "Preparing selected passage…",
|
|
8384
8423
|
"selectionCaptureFailed": "Could not prepare the selected passage. Discard it to leave a whole-Artifact comment.",
|
|
8385
8424
|
"commentSelection": "Comment",
|
|
8386
|
-
"selectionTooLong": "
|
|
8425
|
+
"selectionTooLong": "This passage is too long to comment on. Select {max} characters or fewer.",
|
|
8387
8426
|
"selectionUnavailable": "This passage cannot be anchored. Select another passage.",
|
|
8388
8427
|
"snapshotChanged": "The document changed. Reload it before commenting.",
|
|
8389
8428
|
"commentSaveFailed": "Could not save the document. Try again before commenting.",
|
|
@@ -8402,7 +8441,7 @@ const catalog = {
|
|
|
8402
8441
|
"sent_to_agent": "sent feedback to an agent"
|
|
8403
8442
|
},
|
|
8404
8443
|
"person": "Person",
|
|
8405
|
-
"deleteRootDescription": "
|
|
8444
|
+
"deleteRootDescription": "Its text is removed for everyone, and the thread becomes read-only. This cannot be undone.",
|
|
8406
8445
|
"showPanel": "Show comments",
|
|
8407
8446
|
"hidePanel": "Hide comments",
|
|
8408
8447
|
"panelTitle": "Comments and activity",
|
|
@@ -8424,7 +8463,29 @@ const catalog = {
|
|
|
8424
8463
|
"screenshotReadFailed": "Could not load the screenshot.",
|
|
8425
8464
|
"screenshotMissing": "Screenshot unavailable. The drawing is saved.",
|
|
8426
8465
|
"screenshotCaptureFailed": "Could not capture a screenshot. Your comment will include the drawing without an image.",
|
|
8427
|
-
"sendScreenshotLimit": "
|
|
8466
|
+
"sendScreenshotLimit": "Could not send these comments. Their screenshots exceed the limit for one request. Send fewer threads with drawings.",
|
|
8467
|
+
"agentsUnavailable": "Could not load agents.",
|
|
8468
|
+
"showMore": "Show more",
|
|
8469
|
+
"showLess": "Show less",
|
|
8470
|
+
"moreReplies": "{count, plural, one {# more reply} other {# more replies}}",
|
|
8471
|
+
"resolvedBy": "Resolved by {name}",
|
|
8472
|
+
"agent": "Agent",
|
|
8473
|
+
"threadResolved": "Thread resolved",
|
|
8474
|
+
"undo": "Undo",
|
|
8475
|
+
"agentPending": "Sending to agent…",
|
|
8476
|
+
"agentSent": "Sent to agent",
|
|
8477
|
+
"openSession": "Open session",
|
|
8478
|
+
"notDelivered": "Not delivered",
|
|
8479
|
+
"sendThreads": "{count, plural, one {Send # open thread to {agent}} other {Send # open threads to {agent}}}",
|
|
8480
|
+
"chooseAgent": "Choose agent",
|
|
8481
|
+
"sentToAgent": "Comments sent to {agent}",
|
|
8482
|
+
"newCommentFrom": "New comment from {name}",
|
|
8483
|
+
"newComments": "{count, plural, one {# new comment} other {# new comments}}",
|
|
8484
|
+
"filterLabel": "Thread status",
|
|
8485
|
+
"pagePinLabel": "Comment {number}",
|
|
8486
|
+
"showPanelCount": "Show comments, {count} open",
|
|
8487
|
+
"hidePanelCount": "Hide comments, {count} open",
|
|
8488
|
+
"commentSelectionHint": "Comment on the selection"
|
|
8428
8489
|
},
|
|
8429
8490
|
"insertMedia": "Image or video…",
|
|
8430
8491
|
"diagram": "Diagram",
|
|
@@ -9066,10 +9127,8 @@ const catalog = {
|
|
|
9066
9127
|
"memoryNoteChannel": "What agents in {place} remember. Agents read this at the start of every thread.",
|
|
9067
9128
|
"memoryNoteDm": "What {agent} remembers from this DM. It reads this at the start of every thread.",
|
|
9068
9129
|
"off": {
|
|
9069
|
-
"title": "
|
|
9070
|
-
"description": "Files and memory for {place} live in Drive.
|
|
9071
|
-
"descriptionMember": "Files and memory for {place} live in Drive. Ask a project admin to turn it on.",
|
|
9072
|
-
"action": "Open feature flags"
|
|
9130
|
+
"title": "No Drive here",
|
|
9131
|
+
"description": "Files and memory for {place} live in the Drive. This Kortix stores no Drive: it needs Platinum."
|
|
9073
9132
|
}
|
|
9074
9133
|
},
|
|
9075
9134
|
"onboarding": {
|
|
@@ -9251,6 +9310,28 @@ const catalog = {
|
|
|
9251
9310
|
"returnControl": "Return control",
|
|
9252
9311
|
"escape": "Esc"
|
|
9253
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
|
+
},
|
|
9254
9335
|
"agentCapabilities": {
|
|
9255
9336
|
"skillsTitle": "Skills",
|
|
9256
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/
|
|
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.
|
|
21
|
-
*
|
|
22
|
-
*
|
|
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
|
-
|
|
55
|
-
|
|
56
|
-
const
|
|
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
|
};
|
|
@@ -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
|
|
12
|
-
*
|
|
13
|
-
*
|
|
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
|
|
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
|
|
60
|
-
*
|
|
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;
|