@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.
Files changed (130) hide show
  1. package/README.md +2 -2
  2. package/dist/_vendor/kortix-shared.js +38 -2
  3. package/dist/_vendor/shared/artifact-annotations.d.ts +126 -1
  4. package/dist/_vendor/shared/artifact-comments.d.ts +30 -1
  5. package/dist/_vendor/shared/channel-descriptors.d.ts +20 -1
  6. package/dist/_vendor/shared/channel-message.d.ts +1 -1
  7. package/dist/_vendor/shared/my-kortix-agent.d.ts +1 -1
  8. package/dist/_vendor/shared/space-slug.d.ts +3 -4
  9. package/dist/_vendor/shared/utils/ambiguous-write.d.ts +3 -3
  10. package/dist/customize/agents/agent-instructions.d.ts +8 -0
  11. package/dist/customize/agents/agent-instructions.js +38 -12
  12. package/dist/customize/agents/agent-overview.d.ts +6 -3
  13. package/dist/customize/agents/agent-overview.js +8 -2
  14. package/dist/customize/agents/agent-page-chrome.d.ts +45 -27
  15. package/dist/customize/agents/agent-page-chrome.js +60 -37
  16. package/dist/customize/agents/agent-page.js +88 -99
  17. package/dist/customize/agents/agent-tabs.d.ts +15 -14
  18. package/dist/customize/agents/agent-tabs.js +19 -16
  19. package/dist/customize/agents/agents-page.js +8 -6
  20. package/dist/customize/connectors/detail/account-info.js +1 -1
  21. package/dist/customize/project-settings/project-admin-sections.d.ts +6 -2
  22. package/dist/customize/project-settings/project-admin-sections.js +5 -3
  23. package/dist/customize/project-settings/project-settings-sections.js +1 -1
  24. package/dist/customize/sections/component/channel-access-panel.js +16 -0
  25. package/dist/customize/sections/component/channel-mocks.d.ts +5 -0
  26. package/dist/customize/sections/component/channel-mocks.js +14 -2
  27. package/dist/customize/sections/component/discord-channel-row.d.ts +6 -0
  28. package/dist/customize/sections/component/discord-channel-row.js +48 -0
  29. package/dist/customize/sections/gateway-access-tab.js +1 -1
  30. package/dist/customize/sections/view/channels-view.js +18 -1
  31. package/dist/customize/sections/view/git-view.js +2 -2
  32. package/dist/customize/sections/view/secret-delivery.js +1 -1
  33. package/dist/customize/sections/view/secrets-view.js +1 -1
  34. package/dist/customize/settings/rail.js +2 -2
  35. package/dist/customize/settings/tabs/experimental-tab.d.ts +2 -2
  36. package/dist/customize/settings/tabs/experimental-tab.js +3 -6
  37. package/dist/customize/settings/tabs/general-tab.js +5 -4
  38. package/dist/customize/shared/capability-library.js +19 -22
  39. package/dist/customize/shared/channels-switch-dialog.d.ts +4 -8
  40. package/dist/customize/shared/channels-switch-dialog.js +5 -16
  41. package/dist/customize/shared/customize-tab-bar.d.ts +1 -2
  42. package/dist/customize/shared/customize-tab-bar.js +10 -11
  43. package/dist/customize/shared/feature-gate-screen.js +5 -7
  44. package/dist/files/drives/drive-path-param.d.ts +4 -0
  45. package/dist/files/drives/drive-path-param.js +50 -0
  46. package/dist/files/index.d.ts +1 -0
  47. package/dist/files/index.js +1 -0
  48. package/dist/files/project/components/drive-create-dialog.js +3 -3
  49. package/dist/i18n/en.d.ts +99 -18
  50. package/dist/i18n/en.js +125 -44
  51. package/dist/i18n/ui-catalog/remaining-ui-translation-keys.generated.js +1 -1
  52. package/dist/internal/branding/branding-provider.d.ts +15 -4
  53. package/dist/internal/branding/branding-provider.js +12 -7
  54. package/dist/internal/connector-logo/connector-logo.js +2 -0
  55. package/dist/internal/connector-logo/connector-mark-files.js +1 -0
  56. package/dist/internal/hooks/channels/use-channels-installations.d.ts +7 -2
  57. package/dist/internal/hooks/channels/use-channels-installations.js +31 -1
  58. package/dist/internal/hooks/projects/use-new-project-session.d.ts +6 -14
  59. package/dist/internal/hooks/projects/use-new-project-session.js +12 -97
  60. package/dist/internal/hooks/use-notification-center.d.ts +11 -8
  61. package/dist/internal/hooks/use-notification-center.js +22 -10
  62. package/dist/internal/icons/discord.d.ts +9 -0
  63. package/dist/internal/icons/discord.js +9 -0
  64. package/dist/internal/layout/connect-mcp-modal.js +1 -1
  65. package/dist/internal/lib/browser-noise/rules/expected-states.js +1 -1
  66. package/dist/internal/lib/error-handler.js +1 -1
  67. package/dist/internal/lib/use-project-feature-flags.js +5 -3
  68. package/dist/markdown/doc-editor/doc-menus.d.ts +6 -0
  69. package/dist/markdown/doc-editor/doc-menus.js +74 -9
  70. package/dist/markdown/markdown-frontmatter.d.ts +0 -3
  71. package/dist/markdown/markdown-frontmatter.js +45 -5
  72. package/dist/session/actions/project-session-list-helpers.d.ts +4 -14
  73. package/dist/session/actions/project-session-list-helpers.js +5 -16
  74. package/dist/session/actions/session-label.d.ts +5 -9
  75. package/dist/session/actions/session-label.js +6 -10
  76. package/dist/session/participants/session-participants.d.ts +7 -5
  77. package/dist/session/participants/session-participants.js +11 -7
  78. package/dist/session/status/provisioning-failure.d.ts +26 -6
  79. package/dist/session/status/provisioning-failure.js +39 -12
  80. package/dist/session/thread/optimistic-turn.js +11 -2
  81. package/dist/session/thread/session-chat.js +73 -25
  82. package/dist/session/thread/transcript.d.ts +9 -0
  83. package/dist/session/thread/transcript.js +44 -5
  84. package/dist/session/tool/tools/channel-send-card.js +1 -0
  85. package/dist/session/turn/channel-brand.js +4 -0
  86. package/dist/session/turn/message-author.d.ts +13 -8
  87. package/dist/session/turn/message-author.js +34 -16
  88. package/dist/session/turn/peer-message-row.js +24 -6
  89. package/dist/session/turn/user-message.js +1 -1
  90. package/dist/session/voice/call-audio.d.ts +32 -0
  91. package/dist/session/voice/call-audio.js +146 -0
  92. package/dist/session/voice/screen-share.d.ts +24 -0
  93. package/dist/session/voice/screen-share.js +75 -0
  94. package/dist/session/voice/use-voice-call.d.ts +15 -0
  95. package/dist/session/voice/use-voice-call.js +220 -0
  96. package/dist/session/voice/voice-call-bar.d.ts +4 -0
  97. package/dist/session/voice/voice-call-bar.js +39 -0
  98. package/dist/session/voice/voice-call-state.d.ts +96 -0
  99. package/dist/session/voice/voice-call-state.js +103 -0
  100. package/dist/session/voice/voice-call-store.d.ts +12 -0
  101. package/dist/session/voice/voice-call-store.js +10 -0
  102. package/dist/session/voice/voice-call-url.d.ts +24 -0
  103. package/dist/session/voice/voice-call-url.js +33 -0
  104. package/dist/session/voice/voice-call.d.ts +15 -0
  105. package/dist/session/voice/voice-call.js +54 -0
  106. package/dist/styles.css +1 -1
  107. package/dist/workspace/admin/project-admin-dashboard.js +9 -4
  108. package/dist/workspace/layout/project-home.js +13 -14
  109. package/dist/workspace/sidebar/footer/project-manifest-issues-alert.d.ts +1 -1
  110. package/dist/workspace/sidebar/footer/project-manifest-issues-alert.js +4 -3
  111. package/dist/workspace/sidebar/project-session-list.js +14 -26
  112. package/dist/workspace/sidebar/session-brief-hover-card.d.ts +0 -3
  113. package/dist/workspace/sidebar/session-brief-hover-card.js +0 -3
  114. package/dist/workspace/sidebar/session-filter-menu.js +1 -0
  115. package/dist/workspace/sidebar/session-grouping.d.ts +4 -0
  116. package/dist/workspace/sidebar/session-grouping.js +2 -0
  117. package/dist/workspace/sidebar/session-source-icons.js +2 -0
  118. package/dist/workspace/space/space-page.js +2 -2
  119. package/package.json +9 -9
  120. package/skills/kortix-ui/SKILL.md +2 -2
  121. package/skills/kortix-ui/references/custom-dashboard.md +1 -1
  122. package/skills/kortix-ui/references/modules.md +1 -1
  123. package/dist/customize/agents/agent-section-rail.d.ts +0 -21
  124. package/dist/customize/agents/agent-section-rail.js +0 -23
  125. package/dist/internal/hooks/projects/use-warm-project-session.d.ts +0 -270
  126. package/dist/internal/hooks/projects/use-warm-project-session.js +0 -362
  127. package/dist/internal/hooks/projects/warm-session-seed.d.ts +0 -66
  128. package/dist/internal/hooks/projects/warm-session-seed.js +0 -80
  129. package/dist/internal/hooks/projects/warm-session-taken-registry.d.ts +0 -61
  130. package/dist/internal/hooks/projects/warm-session-taken-registry.js +0 -141
@@ -1,24 +1,25 @@
1
1
  /**
2
- * The agent page's address: four tabs, and a view inside Access and Runtime.
3
- * The page draws them as ONE rail (2026-10-28): Overview, Triggers, then the
4
- * Access views and the Runtime views under their group labels. The address
5
- * keeps its two levels, so every link still resolves.
2
+ * The agent page's address: five tabs, and a view inside Access and Runtime.
3
+ * The page draws them as ONE left rail in three groups (2026-11-03, the
4
+ * Settings-style rail is back): General (Overview, Basics, People, Triggers),
5
+ * Access (one row per grant) and Runtime (Model, Tools, Workspace). The
6
+ * address keeps its two levels, so every link still resolves.
6
7
  *
7
- * ?tab=overview | access | runtime | triggers
8
+ * ?tab=overview | basics | access | runtime | triggers
8
9
  * ?tab=access&view=connectors | secrets | skills | tools | extensions | drives | apps | permissions | …
9
10
  * ?tab=runtime&view=model | workspace
10
11
  *
11
12
  * The page used to be a rail of seventeen `?section=<key>` topics, then six
12
13
  * tabs. Tools moved from Runtime to Access (2026-10-27): `?tab=runtime&view=tools`
13
- * opens Access. Every old link still resolves: `resolveAgentLocation` maps
14
- * `?section=` onto a tab and a view (Basics became the Overview's
15
- * Availability panel). Instructions and People are no tabs any more: the
14
+ * opens Access; the rail still lists Tools under Runtime. Every old link still
15
+ * resolves: `resolveAgentLocation` maps `?section=` onto a tab and a view.
16
+ * Instructions and People are no tabs: the
16
17
  * instructions are edited on the Overview, and People is the header's Share
17
18
  * dialog. Their old links open the Overview with the instructions in focus or
18
19
  * the Share dialog open (`open`).
19
20
  */
20
21
  import type { AgentConfigSectionKey } from '../sections/view/agent-editor.js';
21
- export declare const AGENT_TABS: readonly ["overview", "access", "runtime", "triggers"];
22
+ export declare const AGENT_TABS: readonly ["overview", "basics", "access", "runtime", "triggers"];
22
23
  export type AgentTab = (typeof AGENT_TABS)[number];
23
24
  /** Access views, in the order of an `agents.<name>` block in kortix.yaml. */
24
25
  export declare const ACCESS_VIEWS: readonly ["tools", "skills", "subagents", "commands", "extensions", "connectors", "secrets", "apps", "actions", "drives"];
@@ -53,11 +54,11 @@ export declare const YAML_KEY_ROW: {
53
54
  readonly description: "overview";
54
55
  readonly prompt: "overview";
55
56
  readonly prompt_file: "overview";
56
- readonly enabled: "overview";
57
- readonly hidden: "overview";
58
- readonly mode: "overview";
59
- readonly space: "overview";
60
- readonly color: "overview";
57
+ readonly enabled: "basics";
58
+ readonly hidden: "basics";
59
+ readonly mode: "basics";
60
+ readonly space: "basics";
61
+ readonly color: "basics";
61
62
  readonly model: "model";
62
63
  readonly variant: "model";
63
64
  readonly temperature: "model";
@@ -1,23 +1,24 @@
1
1
  /**
2
- * The agent page's address: four tabs, and a view inside Access and Runtime.
3
- * The page draws them as ONE rail (2026-10-28): Overview, Triggers, then the
4
- * Access views and the Runtime views under their group labels. The address
5
- * keeps its two levels, so every link still resolves.
2
+ * The agent page's address: five tabs, and a view inside Access and Runtime.
3
+ * The page draws them as ONE left rail in three groups (2026-11-03, the
4
+ * Settings-style rail is back): General (Overview, Basics, People, Triggers),
5
+ * Access (one row per grant) and Runtime (Model, Tools, Workspace). The
6
+ * address keeps its two levels, so every link still resolves.
6
7
  *
7
- * ?tab=overview | access | runtime | triggers
8
+ * ?tab=overview | basics | access | runtime | triggers
8
9
  * ?tab=access&view=connectors | secrets | skills | tools | extensions | drives | apps | permissions | …
9
10
  * ?tab=runtime&view=model | workspace
10
11
  *
11
12
  * The page used to be a rail of seventeen `?section=<key>` topics, then six
12
13
  * tabs. Tools moved from Runtime to Access (2026-10-27): `?tab=runtime&view=tools`
13
- * opens Access. Every old link still resolves: `resolveAgentLocation` maps
14
- * `?section=` onto a tab and a view (Basics became the Overview's
15
- * Availability panel). Instructions and People are no tabs any more: the
14
+ * opens Access; the rail still lists Tools under Runtime. Every old link still
15
+ * resolves: `resolveAgentLocation` maps `?section=` onto a tab and a view.
16
+ * Instructions and People are no tabs: the
16
17
  * instructions are edited on the Overview, and People is the header's Share
17
18
  * dialog. Their old links open the Overview with the instructions in focus or
18
19
  * the Share dialog open (`open`).
19
20
  */
20
- export const AGENT_TABS = ['overview', 'access', 'runtime', 'triggers'];
21
+ export const AGENT_TABS = ['overview', 'basics', 'access', 'runtime', 'triggers'];
21
22
  /** Access views, in the order of an `agents.<name>` block in kortix.yaml. */
22
23
  export const ACCESS_VIEWS = [
23
24
  'tools',
@@ -50,7 +51,7 @@ function tabOfSection(section) {
50
51
  return 'access';
51
52
  if (RUNTIME_VIEWS.includes(section))
52
53
  return 'runtime';
53
- if (section === 'basics' || section === 'instructions' || section === 'people')
54
+ if (section === 'instructions' || section === 'people')
54
55
  return 'overview';
55
56
  return section;
56
57
  }
@@ -105,11 +106,11 @@ export const YAML_KEY_ROW = {
105
106
  description: OVERVIEW_ROW,
106
107
  prompt: OVERVIEW_ROW,
107
108
  prompt_file: 'overview',
108
- enabled: 'overview',
109
- hidden: 'overview',
110
- mode: 'overview',
111
- space: 'overview',
112
- color: 'overview',
109
+ enabled: 'basics',
110
+ hidden: 'basics',
111
+ mode: 'basics',
112
+ space: 'basics',
113
+ color: 'basics',
113
114
  model: 'model',
114
115
  variant: 'model',
115
116
  temperature: 'model',
@@ -155,7 +156,9 @@ function fields(block) {
155
156
  }
156
157
  /** The rail row a location shows. */
157
158
  export function railKeyOf(location) {
158
- return location.view ?? (location.tab === 'triggers' ? 'triggers' : 'overview');
159
+ if (location.view)
160
+ return location.view;
161
+ return location.tab === 'triggers' || location.tab === 'basics' ? location.tab : 'overview';
159
162
  }
160
163
  /**
161
164
  * The rail rows that hold an unsaved edit: each changed field of the draft,
@@ -10,6 +10,9 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
10
10
  * line reads what the configuration grants (KRTX-3025), never the agent's
11
11
  * prose. A space filter appears when the project splits into spaces.
12
12
  *
13
+ * The page is the Customize libraries' shell (`CapabilityPageShell`), the
14
+ * same title, search and centered column as Skills and Connectors.
15
+ *
13
16
  * New agent opens `CreateAgentModal`; `?new=1` opens it too (the sidebar's
14
17
  * New agent row links here).
15
18
  *
@@ -49,7 +52,7 @@ import { toArray } from '../shared/utils.js';
49
52
  import { AgentAccessText } from './agent-access-text.js';
50
53
  import { AgentCoverCard } from './agent-cover-card.js';
51
54
  import { agentInMode, filterAgents } from './agent-filter.js';
52
- import { AgentTabBody, CustomizeHeader } from './agent-page-chrome.js';
55
+ import { CapabilityPageShell } from '../shared/capability-page-shell.js';
53
56
  import { CreateAgentModal } from './create-agent-modal.js';
54
57
  import { AgentPinButton } from './agent-pin-button.js';
55
58
  export function AgentsPage({ projectId }) {
@@ -149,11 +152,10 @@ export function AgentsPage({ projectId }) {
149
152
  return _jsx(CatalogNoMatch, { query: query });
150
153
  return (_jsx("div", { className: "space-y-8", children: work.length > 0 ? (_jsxs("section", { className: "space-y-3", children: [groups.length > 0 ? (_jsx(CatalogSpaceTabs, { groups: groups, value: spaceFilter, onValueChange: (v) => setActiveSpace(v === ALL_SPACES ? null : v) })) : null, primaryAgents.length > 0 ? (_jsx("div", { className: GRID_CLASSNAME, children: primaryAgents.map((agent) => card(agent, agent.name === defaultAgent ? tPage('default') : undefined)) })) : null, subagents.length > 0 ? (_jsxs("section", { "aria-labelledby": "subagents-heading", className: cn('space-y-2', primaryAgents.length > 0 && 'pt-5'), children: [_jsxs("div", { children: [_jsxs("h2", { id: "subagents-heading", className: "text-foreground text-sm font-medium", children: [tI18nComplete.raw('agentsListSubagentsTitle'), ' ', _jsx("span", { className: "text-muted-foreground font-normal tabular-nums", children: subagents.length })] }), _jsx("p", { className: "text-muted-foreground mt-1 text-xs", children: tI18nComplete.raw('agentsListSubagentsHint') })] }), _jsx("div", { className: GRID_CLASSNAME, children: subagents.map((agent) => card(agent)) })] })) : null] })) : null }));
151
154
  })();
152
- const search = (ref) => (_jsxs(InputGroupSearch, { children: [_jsx(InputGroupSearchIcon, { children: _jsx(MagnifyingGlassIcon, {}) }), _jsx(InputGroupSearchInput, { ref: ref, "aria-label": tI18nComplete.raw('text212fd04a1d20'), placeholder: tI18nComplete.raw('text212fd04a1d20'), value: query, onChange: (event) => setQuery(event.target.value), variant: "popover", size: "sm" }), query ? _jsx(InputGroupSearchClear, { onClick: () => setQuery('') }) : null] }));
153
- // The same header as the agent page, My Kortix and Review (`CustomizeHeader`),
154
- // so the title never jumps between them. Search sits in it from `md`; below
155
- // that it is the first row of the list.
156
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "flex h-full min-h-0 flex-1 flex-col", children: [_jsx(CustomizeHeader, { title: tI18nComplete.raw('text279b44d2ab4b'), rule: true, actions: _jsxs(_Fragment, { children: [_jsx("div", { className: "hidden w-64 md:block", children: search(searchRef) }), config ? _jsx(DefaultAgentSelector, { projectId: projectId, config: config, canWrite: canWrite }) : null, newButton] }) }), _jsxs(AgentTabBody, { className: "mx-auto max-w-6xl space-y-5 pb-5", children: [_jsx("div", { className: "md:hidden", children: search() }), body] })] }), canWrite ? (_jsx(CreateAgentModal, { open: createOpen, onOpenChange: setCreateOpen, projectId: projectId, config: config })) : null] }));
155
+ // The Customize libraries' page shell (Skills, Connectors): the title and
156
+ // one line under it, search and actions on the right, then the card grid in
157
+ // a centered `max-w-5xl` column (2026-11-03: the earlier Agents page is back).
158
+ return (_jsxs(_Fragment, { children: [_jsx(CapabilityPageShell, { title: tI18nComplete.raw('text279b44d2ab4b'), description: tI18nComplete.raw('text636453e23d69'), action: _jsxs(_Fragment, { children: [config ? _jsx(DefaultAgentSelector, { projectId: projectId, config: config, canWrite: canWrite }) : null, newButton] }), search: _jsxs(InputGroupSearch, { children: [_jsx(InputGroupSearchIcon, { children: _jsx(MagnifyingGlassIcon, {}) }), _jsx(InputGroupSearchInput, { ref: searchRef, "aria-label": tI18nComplete.raw('text212fd04a1d20'), placeholder: tI18nComplete.raw('text212fd04a1d20'), value: query, onChange: (event) => setQuery(event.target.value), variant: "popover", size: "sm" }), query ? _jsx(InputGroupSearchClear, { onClick: () => setQuery('') }) : null] }), children: body }), canWrite ? (_jsx(CreateAgentModal, { open: createOpen, onOpenChange: setCreateOpen, projectId: projectId, config: config })) : null] }));
157
159
  }
158
160
  /**
159
161
  * The card's facts line: what the configuration grants (KRTX-3025), in the
@@ -8,7 +8,7 @@ import { UiLink as Link } from '../../../providers/ui-provider.js';
8
8
  import { Button } from '../../../primitives/button.js';
9
9
  import { HoverCard, HoverCardContent, HoverCardTrigger } from '../../../primitives/hover-card.js';
10
10
  import { useTranslations } from '../../../i18n/index.js';
11
- const DOCS_HREF = '/docs/connect/connectors#connectors-connections-and-accounts';
11
+ const DOCS_HREF = '/docs/guide#who-can-use-an-account';
12
12
  /** The ⓘ beside "Accounts": what an account is, and who can use each kind. */
13
13
  export function AccountInfo({ projectId, displayName }) {
14
14
  const t = useTranslations('connectorPages');
@@ -8,14 +8,16 @@ import { type ProjectSettingsSectionKey } from './project-settings-sections.js';
8
8
  * on. Project admin is the other view: the project-wide libraries an agent is
9
9
  * granted from, plus every project setting. Two rail groups:
10
10
  *
11
- * 1. **Project resources** — the global variant of each library page.
11
+ * 1. **Project resources** — the global variant of each library page. Tools
12
+ * and Extensions have none (Jay, 2026-11-03): they are switched per agent,
13
+ * on the agent's own page, and a project-wide list changed nothing.
12
14
  * 2. **Settings** — the sections of `project-settings-sections.ts`, unchanged.
13
15
  *
14
16
  * A key IS its URL segment (`/admin/<key>`), so renaming one breaks live links. The
15
17
  * settings keys are the Settings page's own keys, so `?section=git` means the
16
18
  * same section on both surfaces.
17
19
  */
18
- export type ProjectAdminResourceKey = 'connectors' | 'skills' | 'tools' | 'extensions' | 'triggers' | 'models' | 'secrets' | 'apps' | 'drives' | 'repo';
20
+ export type ProjectAdminResourceKey = 'connectors' | 'skills' | 'triggers' | 'models' | 'secrets' | 'apps' | 'drives' | 'repo';
19
21
  /**
20
22
  * The Settings sections this page lists. Review is not one: it is its own
21
23
  * standalone surface, and `projectSettingsSections` never lists it.
@@ -43,6 +45,8 @@ export interface ProjectAdminResource {
43
45
  }
44
46
  /** Rail order. Icons match the agent editor's tabs (`agent-page.tsx`). */
45
47
  export declare const PROJECT_ADMIN_RESOURCES: readonly ProjectAdminResource[];
48
+ /** Sections that no longer exist here: their links open the Agents list. */
49
+ export declare const RETIRED_SECTIONS: readonly string[];
46
50
  /** `/projects/<id>/admin` with no section opens the first resource. */
47
51
  export declare const DEFAULT_PROJECT_ADMIN_SECTION: ProjectAdminSectionKey;
48
52
  export declare function isProjectAdminResource(key: ProjectAdminSectionKey): key is ProjectAdminResourceKey;
@@ -1,4 +1,4 @@
1
- import { AppWindowIcon, BookOpenTextIcon, CpuIcon, FoldersIcon, HardDrivesIcon, KeyIcon, PlugsConnectedIcon, PuzzlePieceIcon, TimerIcon, WrenchIcon, } from '@phosphor-icons/react';
1
+ import { AppWindowIcon, BookOpenTextIcon, CpuIcon, FoldersIcon, HardDrivesIcon, KeyIcon, PlugsConnectedIcon, TimerIcon, } from '@phosphor-icons/react';
2
2
  import { adminPath } from '../../lib/routes.js';
3
3
  import { parseProjectSettingsSection, } from './project-settings-sections.js';
4
4
  /** Rail order. Icons match the agent editor's tabs (`agent-page.tsx`). */
@@ -6,8 +6,6 @@ export const PROJECT_ADMIN_RESOURCES = [
6
6
  { key: 'connectors', icon: PlugsConnectedIcon, capability: 'connectors', host: false },
7
7
  { key: 'secrets', icon: KeyIcon, capability: 'secrets', host: false },
8
8
  { key: 'skills', icon: BookOpenTextIcon, capability: 'skills', host: false },
9
- { key: 'tools', icon: WrenchIcon, capability: 'agent', host: false },
10
- { key: 'extensions', icon: PuzzlePieceIcon, capability: 'agent', host: false },
11
9
  { key: 'drives', icon: HardDrivesIcon, capability: null, host: false, flag: 'drives' },
12
10
  { key: 'apps', icon: AppWindowIcon, capability: null, host: true },
13
11
  // Triggers: kortix.yaml triggers and runtime triggers (loops) on one page.
@@ -16,6 +14,8 @@ export const PROJECT_ADMIN_RESOURCES = [
16
14
  { key: 'models', icon: CpuIcon, capability: 'models', host: false },
17
15
  { key: 'repo', icon: FoldersIcon, capability: 'files', host: false, flag: 'drives' },
18
16
  ];
17
+ /** Sections that no longer exist here: their links open the Agents list. */
18
+ export const RETIRED_SECTIONS = ['tools', 'extensions'];
19
19
  /** `/projects/<id>/admin` with no section opens the first resource. */
20
20
  export const DEFAULT_PROJECT_ADMIN_SECTION = 'connectors';
21
21
  export function isProjectAdminResource(key) {
@@ -24,6 +24,8 @@ export function isProjectAdminResource(key) {
24
24
  export function parseProjectAdminSection(raw) {
25
25
  if (!raw)
26
26
  return null;
27
+ // `/admin/tools` and `/admin/extensions` were read-only lists until
28
+ // 2026-11-03; the dashboard sends them to the Agents list (`RETIRED_SECTIONS`).
27
29
  // `/admin/loops` was the Loops page until 2026-10-28: loops are triggers now.
28
30
  if (raw === 'loops')
29
31
  return 'triggers';
@@ -30,7 +30,7 @@ const STATIC_SECTIONS = [
30
30
  // section shows the template's recipe and the record of each time Kortix
31
31
  // built a machine from it.
32
32
  description: 'The recipe for the machine a session runs on, and the record of every time Kortix prepared one.',
33
- docsHref: '/docs/work/runtime',
33
+ docsHref: '/docs/developers#sandbox-templates',
34
34
  gate: 'sandbox',
35
35
  },
36
36
  ];
@@ -44,6 +44,22 @@ export const CHANNEL_ACCESS = {
44
44
  removeDescription: 'telegramRemoveDescription',
45
45
  },
46
46
  },
47
+ discord: {
48
+ parseUserId: (raw) => {
49
+ const id = raw.trim();
50
+ return CHANNELS.discord.access.userId.test(id) ? id : null;
51
+ },
52
+ idPlaceholder: CHANNELS.discord.access.idPlaceholder,
53
+ idInputMode: CHANNELS.discord.access.idInputMode,
54
+ copy: {
55
+ descriptionKey: 'discordUsersDescription',
56
+ emptyDescription: 'discordUsersEmptyDescription',
57
+ loadError: 'discordUsersLoadError',
58
+ addByIdHint: 'discordAddByIdHint',
59
+ addByIdInvalid: 'discordAddByIdInvalid',
60
+ removeDescription: 'discordRemoveDescription',
61
+ },
62
+ },
47
63
  };
48
64
  /** First and last name, else @username, else the id. */
49
65
  export function channelUserName(user) {
@@ -2,5 +2,10 @@
2
2
  export declare function EmailThreadMock(): import("react").JSX.Element;
3
3
  /** A Telegram chat with the project's bot. */
4
4
  export declare function TelegramChatMock(): import("react").JSX.Element;
5
+ /**
6
+ * A Discord thread started from a mention: Maya asks in `#launch`, the agent
7
+ * answers in the thread Kortix opened on her message.
8
+ */
9
+ export declare function DiscordThreadMock(): import("react").JSX.Element;
5
10
  /** A terminal on the person's own machine: the agent reads files, runs a command and uses an app. */
6
11
  export declare function ComputerTerminalMock(): import("react").JSX.Element;
@@ -1,12 +1,12 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  /**
4
- * The previews beside the Email, Telegram and Computer heroes
4
+ * The previews beside the Email, Telegram, Discord and Computer heroes
5
5
  * (`channel-hero-frame.tsx`), drawn like the Slack and Teams ones: a glimpse
6
6
  * of the place the agent shows up, with one person asking and the agent
7
7
  * answering. Decorative: the hero's heading and lede say it in words.
8
8
  */
9
- import { EnvelopeSimpleIcon, PaperPlaneTiltIcon, TerminalWindowIcon } from '@phosphor-icons/react';
9
+ import { EnvelopeSimpleIcon, HashIcon, PaperPlaneTiltIcon, TerminalWindowIcon } from '@phosphor-icons/react';
10
10
  import { useTranslations } from '../../../i18n/index.js';
11
11
  import { Kortix } from '../../../internal/icons/kortix.js';
12
12
  /** Telegram's own colours, so the mock reads as Telegram at a glance: its
@@ -19,6 +19,8 @@ const TELEGRAM_UI = {
19
19
  '--telegram-bubble': TELEGRAM_BUBBLE,
20
20
  '--telegram-on-accent': TELEGRAM_ON_ACCENT,
21
21
  };
22
+ /** Discord's own colours, so the mock reads as Discord at a glance: its blurple, and white on it. */
23
+ const DISCORD_UI = { '--discord-accent': '#5865f2', '--discord-on-accent': '#ffffff' };
22
24
  /** An inbox thread: Maya writes to the project's address and the agent replies in the thread. */
23
25
  export function EmailThreadMock() {
24
26
  const t = useTranslations('connectorPages');
@@ -29,6 +31,16 @@ export function TelegramChatMock() {
29
31
  const t = useTranslations('connectorPages');
30
32
  return (_jsxs("div", { className: "flex min-w-0 flex-1 flex-col", style: TELEGRAM_UI, children: [_jsxs("div", { className: "flex items-center gap-2.5 border-b px-5 py-3", children: [_jsx("span", { className: "flex size-7 items-center justify-center rounded-full bg-(--telegram-accent)", children: _jsx(Kortix, { className: "size-3.5 text-(--telegram-on-accent)" }) }), _jsxs("div", { className: "min-w-0", children: [_jsx("p", { className: "text-foreground text-sm font-semibold", children: "Kortix" }), _jsx("p", { className: "text-muted-foreground text-xs", children: t('mockTelegramBot') })] })] }), _jsxs("div", { className: "flex flex-1 flex-col justify-end gap-2.5 px-5 py-4 text-sm", children: [_jsx("p", { className: "text-foreground ms-auto max-w-[80%] rounded-lg rounded-br-xs bg-(--telegram-bubble) px-3 py-2 text-pretty", children: t('mockTelegramAsk') }), _jsx("p", { className: "text-foreground bg-muted max-w-[80%] rounded-lg rounded-bl-xs px-3 py-2 text-pretty", children: t('mockTelegramReply') })] }), _jsxs("div", { className: "mx-5 mb-4 flex h-9 items-center justify-between rounded-full border px-3", children: [_jsx("span", { className: "bg-muted h-2 w-28 rounded-full" }), _jsx(PaperPlaneTiltIcon, { className: "size-4 shrink-0 text-(--telegram-accent)" })] })] }));
31
33
  }
34
+ /** The bot as a Discord mention: the product name, never translated. */
35
+ const DISCORD_BOT_MENTION = '@Kortix';
36
+ /**
37
+ * A Discord thread started from a mention: Maya asks in `#launch`, the agent
38
+ * answers in the thread Kortix opened on her message.
39
+ */
40
+ export function DiscordThreadMock() {
41
+ const t = useTranslations('connectorPages');
42
+ return (_jsxs("div", { className: "flex min-w-0 flex-1 flex-col", style: DISCORD_UI, children: [_jsxs("div", { className: "flex items-center gap-2 border-b px-5 py-3", children: [_jsx(HashIcon, { className: "text-muted-foreground size-4 shrink-0" }), _jsx("p", { className: "text-foreground truncate text-sm font-semibold", children: t('mockDiscordThread') })] }), _jsxs("div", { className: "flex flex-1 flex-col gap-4 px-5 py-4 text-sm", children: [_jsxs("div", { className: "flex gap-2.5", children: [_jsx("span", { className: "bg-muted text-foreground flex size-7 shrink-0 items-center justify-center rounded-full text-xs font-semibold", children: "M" }), _jsxs("div", { className: "min-w-0 space-y-0.5", children: [_jsx("p", { className: "text-foreground font-semibold", children: "Maya" }), _jsxs("p", { className: "text-foreground text-pretty", children: [_jsx("span", { className: "rounded-sm bg-(--discord-accent)/15 px-0.5 text-(--discord-accent)", children: DISCORD_BOT_MENTION }), " ", t('mockDiscordAsk')] }), _jsxs("span", { className: "mt-1 inline-flex items-center gap-1 rounded-md border border-(--discord-accent)/40 bg-(--discord-accent)/10 px-1.5 py-0.5 text-xs text-foreground", children: [_jsx("span", { "aria-hidden": true, children: "\u2705" }), "1"] })] })] }), _jsxs("div", { className: "flex gap-2.5", children: [_jsx("span", { className: "flex size-7 shrink-0 items-center justify-center rounded-full bg-(--discord-accent)", children: _jsx(Kortix, { className: "size-3.5 text-(--discord-on-accent)" }) }), _jsxs("div", { className: "min-w-0 space-y-0.5", children: [_jsx("p", { className: "text-foreground font-semibold", children: "Kortix" }), _jsx("p", { className: "text-foreground text-pretty", children: t('mockDiscordReply') })] })] })] })] }));
43
+ }
32
44
  /** A terminal on the person's own machine: the agent reads files, runs a command and uses an app. */
33
45
  export function ComputerTerminalMock() {
34
46
  const t = useTranslations('connectorPages');
@@ -0,0 +1,6 @@
1
+ export declare function DiscordChannelRow({ projectId, canWrite, channelsAction, }: {
2
+ projectId: string;
3
+ canWrite: boolean;
4
+ /** "N channels": the bindings dialog on the Discord tab. */
5
+ channelsAction?: React.ReactNode;
6
+ }): import("react").JSX.Element;
@@ -0,0 +1,48 @@
1
+ 'use client';
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
+ /**
4
+ * Discord as a channel row: "Add to Discord" installs the Kortix Discord app in
5
+ * one server for this project (Discord's own page picks the server), the
6
+ * allowed users dialog is `ChannelAccessPanel`, and disconnect removes the
7
+ * server. Connected, the row says how to start, opens the server in Discord,
8
+ * and, once a channel is bound, opens the bindings dialog on its Discord tab
9
+ * (`channelsAction`, drawn by the Channels view). On a deployment without the Kortix Discord app the row says so and
10
+ * offers no action: it shows on the Channels tab like every channel.
11
+ */
12
+ import { CHANNELS } from '../../../_vendor/kortix-shared.js';
13
+ import { useState } from 'react';
14
+ import { useTranslations } from '../../../i18n/index.js';
15
+ import { useDisconnectDiscord, useDiscordInstall, useDiscordMode, } from '../../../internal/hooks/channels/use-channels-installations.js';
16
+ import { Button } from '../../../primitives/button.js';
17
+ import { CountBadge } from '../../../primitives/count-badge.js';
18
+ import { Modal, ModalContent } from '../../../primitives/modal.js';
19
+ import { errorToast, successToast } from '../../../primitives/toast.js';
20
+ import { ChannelAccessPanel } from './channel-access-panel.js';
21
+ import { DiscordThreadMock } from './channel-mocks.js';
22
+ import { ChannelDisconnectButton, ChannelRow } from './channel-row.js';
23
+ const DISCORD = CHANNELS.discord;
24
+ export function DiscordChannelRow({ projectId, canWrite, channelsAction, }) {
25
+ const t = useTranslations('hardcodedUi.i18nComplete');
26
+ const tPages = useTranslations('connectorPages');
27
+ const { data: mode } = useDiscordMode(projectId);
28
+ const { data: install } = useDiscordInstall(projectId);
29
+ const disconnect = useDisconnectDiscord();
30
+ const [usersOpen, setUsersOpen] = useState(false);
31
+ const installUrl = mode?.available ? mode.install_url : null;
32
+ return (_jsxs(_Fragment, { children: [_jsx(ChannelRow, { app: "discord", name: DISCORD.label, connected: Boolean(install), detail: install?.guild_name ?? null, hero: {
33
+ title: tPages('discordHeroTitle'),
34
+ connectedTitle: tPages('channelConnectedTitle', { name: DISCORD.label }),
35
+ lede: install ? tPages('discordConnectedLede') : mode && !mode.available ? tPages('discordUnavailable') : tPages('discordHeroLede'),
36
+ preview: _jsx(DiscordThreadMock, {}),
37
+ }, pitch: tPages('discordPitch'), actions: install && !canWrite ? (_jsxs(_Fragment, { children: [channelsAction, _jsx(OpenDiscordButton, { guildId: install.guild_id, label: tPages('discordOpen') })] })) : !canWrite ? null : install ? (_jsxs(_Fragment, { children: [channelsAction, _jsx(OpenDiscordButton, { guildId: install.guild_id, label: tPages('discordOpen') }), _jsxs(Button, { size: "sm", variant: "ghost", onClick: () => setUsersOpen(true), children: [t.raw('text2c3059c25723'), install.access_request_count ? _jsx(CountBadge, { count: install.access_request_count, tone: "waiting" }) : null] }), _jsx(ChannelDisconnectButton, { pending: disconnect.isPending, onConfirm: (done) => disconnect.mutate(projectId, {
38
+ onSuccess: () => {
39
+ done();
40
+ successToast(tPages('discordDisconnected'));
41
+ },
42
+ onError: (error) => errorToast(error.message),
43
+ }) })] })) : installUrl ? (_jsx(Button, { asChild: true, className: "transition-transform active:scale-96", children: _jsx("a", { href: installUrl, children: tPages('discordAddToDiscord') }) })) : null }), _jsx(Modal, { open: usersOpen, onOpenChange: setUsersOpen, children: _jsx(ModalContent, { children: usersOpen ? _jsx(ChannelAccessPanel, { projectId: projectId, platform: "discord", onDone: () => setUsersOpen(false) }) : null }) })] }));
44
+ }
45
+ /** The connected server in Discord: the web app, or the desktop app when it handles discord.com links. */
46
+ function OpenDiscordButton({ guildId, label }) {
47
+ return (_jsx(Button, { asChild: true, size: "sm", variant: "ghost", children: _jsx("a", { href: `https://discord.com/channels/${encodeURIComponent(guildId)}`, target: "_blank", rel: "noreferrer", children: label }) }));
48
+ }
@@ -33,7 +33,7 @@ import { useGatewayKeys } from '@kortix/sdk/react';
33
33
  import { useLocalizedUiCatalog } from '../../i18n/ui-catalog/use-localized-ui-catalog.js';
34
34
  import { useTranslations } from '../../i18n/index.js';
35
35
  import { cn } from '../../internal/lib/utils.js';
36
- const GATEWAY_DOCS_HREF = '/docs/project/models#use-the-gateway-from-your-own-tools';
36
+ const GATEWAY_DOCS_HREF = '/docs/developers#call-the-llm-gateway-from-your-own-app';
37
37
  /** The endpoint tiles under the hero. Labels reuse the reference's own names. */
38
38
  const ENDPOINT_TILES = [
39
39
  { id: 'openai', label: 'OpenAI-compatible', method: 'POST', path: '/v1/chat/completions' },
@@ -86,6 +86,7 @@ import { AgentSelector } from '../../../session/composer/session-chat-input.js';
86
86
  import { ChannelDisconnectButton, ChannelRow, } from '../component/channel-row.js';
87
87
  import { TeamsChannelMock, TeamsConnectCard } from '../component/teams-connect-card.js';
88
88
  import { TelegramChannelRow } from '../component/telegram-channel-row.js';
89
+ import { DiscordChannelRow } from '../component/discord-channel-row.js';
89
90
  import { SlackChannelMock, SlackConnectCard } from '../component/slack-connect-card.js';
90
91
  import { ChannelHeroLayoutProvider } from '../component/channel-hero-frame.js';
91
92
  import { EmailHero } from '../../connectors/detail/email-inboxes.js';
@@ -154,6 +155,10 @@ export function ChannelsSection({ projectId, platform }) {
154
155
  return _jsx(EmailHero, { projectId: projectId, canWrite: canWrite });
155
156
  case 'telegram':
156
157
  return _jsx(TelegramChannelRow, { projectId: projectId, canWrite: canWrite });
158
+ case 'discord': {
159
+ const count = channelCounts.get('discord') ?? 0;
160
+ return (_jsx(DiscordChannelRow, { projectId: projectId, canWrite: canWrite, channelsAction: count > 0 ? _jsx(ChannelsButton, { count: count, onOpen: () => openChannels('discord') }) : null }));
161
+ }
157
162
  default: {
158
163
  // A new channel id fails here until it has a hero.
159
164
  const _exhaustive = pf;
@@ -398,7 +403,7 @@ function ChannelSettingsModalContent({ projectId, binding, name, scope, projectD
398
403
  binding.effectiveModel.source !== 'explicit' &&
399
404
  (binding.opencodeModel || binding.effectiveModel.model)
400
405
  ? `${describeEffectiveModel(binding)}. `
401
- : null, tI18nComplete.raw('text9116af1ce384')] })] }), _jsxs(Field, { "data-disabled": !canWrite, children: [_jsx(FieldTitle, { children: tI18nComplete.raw('textb1ca871c6696') }), _jsxs(Select, { value: policy, onValueChange: (v) => setPolicyDraft(v), disabled: !canWrite, children: [_jsx(SelectTrigger, { className: "h-9 w-full", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: conversationPolicies.map((p) => (_jsx(SelectItem, { value: p.value, children: p.label }, p.value))) })] }), _jsx(FieldDescription, { className: "text-xs", children: policyDescription(policy, tI18nComplete) })] })] })] }), _jsxs(ModalFooter, { className: "pt-2 pb-5 sm:justify-between", children: [_jsxs(Button, { type: "button", variant: "outline-ghost", className: "gap-1", onClick: onBack, children: [_jsx(CaretLeftIcon, { className: "size-3.5 shrink-0" }), tI18nComplete.raw('text76900f1bfd16')] }), canWrite ? (_jsxs(Button, { type: "submit", disabled: !dirty || update.isPending, children: [update.isPending ? _jsx(Loading, { className: "size-4 shrink-0" }) : null, tI18nComplete.raw('text1509f561f241')] })) : null] })] })] }));
406
+ : null, tI18nComplete.raw('text9116af1ce384')] })] }), binding.platform === 'slack' || binding.platform === 'teams' ? (_jsxs(Field, { "data-disabled": !canWrite, children: [_jsx(FieldTitle, { children: tI18nComplete.raw('textb1ca871c6696') }), _jsxs(Select, { value: policy, onValueChange: (v) => setPolicyDraft(v), disabled: !canWrite, children: [_jsx(SelectTrigger, { className: "h-9 w-full", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: conversationPolicies.map((p) => (_jsx(SelectItem, { value: p.value, children: p.label }, p.value))) })] }), _jsx(FieldDescription, { className: "text-xs", children: policyDescription(policy, tI18nComplete) })] })) : null] })] }), _jsxs(ModalFooter, { className: "pt-2 pb-5 sm:justify-between", children: [_jsxs(Button, { type: "button", variant: "outline-ghost", className: "gap-1", onClick: onBack, children: [_jsx(CaretLeftIcon, { className: "size-3.5 shrink-0" }), tI18nComplete.raw('text76900f1bfd16')] }), canWrite ? (_jsxs(Button, { type: "submit", disabled: !dirty || update.isPending, children: [update.isPending ? _jsx(Loading, { className: "size-4 shrink-0" }) : null, tI18nComplete.raw('text1509f561f241')] })) : null] })] })] }));
402
407
  }
403
408
  /** A conversation's display name: the Slack or Teams name, else its kind. */
404
409
  function bindingName(binding, tI18nComplete) {
@@ -417,6 +422,18 @@ function bindingScope(binding, tI18nComplete) {
417
422
  }
418
423
  if (binding.platform === 'slack')
419
424
  return slackScopeLabel(binding, tI18nComplete);
425
+ // Discord and Telegram: the conversation's kind, not the server or bot id every row shares.
426
+ if (binding.platform === 'discord') {
427
+ return tI18nComplete.raw(binding.channelType === 'dm' ? 'textcd3e16057d09' : 'textce4683e7013a');
428
+ }
429
+ if (binding.platform === 'telegram') {
430
+ if (binding.channelType === 'private')
431
+ return tI18nComplete.raw('textcd3e16057d09');
432
+ if (binding.channelType === 'group' || binding.channelType === 'supergroup')
433
+ return tI18nComplete.raw('text28c7d3f8b75d');
434
+ if (binding.channelType === 'channel')
435
+ return tI18nComplete.raw('textce4683e7013a');
436
+ }
420
437
  return binding.workspaceId;
421
438
  }
422
439
  /**
@@ -42,8 +42,8 @@ const GIT_VIEW_ACTIONS = [
42
42
  PROJECT_ACTIONS.PROJECT_WRITE,
43
43
  PROJECT_ACTIONS.PROJECT_MEMBERS_MANAGE,
44
44
  ];
45
- const DOCS_CLI = '/docs/cli';
46
- const DOCS_MANIFEST = '/docs/project/manifest';
45
+ const DOCS_CLI = '/docs/developers#cli';
46
+ const DOCS_MANIFEST = '/docs/developers#kortixyaml-reference';
47
47
  /**
48
48
  * The address a plain `git` client clones from. Kept as the project's own
49
49
  * `git_origin_url` when the backend supplies one, and otherwise rebuilt from
@@ -684,7 +684,7 @@ export function enforcedEchoNotice(hosts, tI18nComplete) {
684
684
  `curl -s -o /dev/null -w '%{http_code}\\n' https://${host}/<authenticated-path>`,
685
685
  '# 200 = the real value was substituted. 401 = it was not.',
686
686
  ].join('\n'),
687
- docsHref: '/docs/project/secrets#verify-it-with-two-probes',
687
+ docsHref: '/docs/guide#verify-it-with-two-probes',
688
688
  docsLabel: 'Verify it with two probes',
689
689
  };
690
690
  }
@@ -201,7 +201,7 @@ function SecretsAccessInfo({ showEnforced }) {
201
201
  const heading = tI18nComplete.raw('text0d8c9f89b826');
202
202
  return (_jsxs(HoverCard, { openDelay: 150, children: [_jsx(HoverCardTrigger, { asChild: true, children: _jsx(Button, { type: "button", variant: "ghost", size: "icon-xs", className: "text-muted-foreground", "aria-label": heading, children: _jsx(InfoIcon, { className: "size-4" }) }) }), _jsxs(HoverCardContent, { align: "start", className: "max-h-[min(36rem,70vh)] w-[26rem] max-w-[calc(100vw-2rem)] space-y-3 overflow-y-auto p-4", children: [_jsx("p", { className: "text-foreground text-sm font-medium", children: heading }), _jsx("dl", { className: "space-y-2.5", children: secretDeliveryLegend(showEnforced, tI18nComplete).map((mode) => (_jsxs("div", { className: "space-y-1", children: [_jsx("dt", { children: _jsx(Badge, { variant: mode.tone, size: "sm", children: mode.label }) }), _jsx("dd", { className: "text-muted-foreground text-xs text-pretty", children: mode.description })] }, mode.key))) }), _jsxs("p", { className: "text-muted-foreground border-border border-t pt-3 text-xs text-pretty", children: [showEnforced
203
203
  ? tI18nComplete.raw('text8aa824e472ff')
204
- : tI18nComplete.raw('texte5a718af362a'), ' ', tI18nComplete.raw('texte1673f438808'), showEnforced ? (_jsxs(_Fragment, { children: [' ', _jsx("span", { className: "text-foreground", children: tI18nComplete.raw('text82ff5452a98d') }), ' ', tI18nComplete.raw('text49e63b9b35ec'), " ", _jsx("code", { className: "font-mono", children: "secrets" }), ' ', tI18nComplete.raw('text582967534d0f'), ' ', _jsx("code", { className: "font-mono", children: "kortix.yaml" }), ";", ' ', _jsx("code", { className: "font-mono", children: "secrets: all" }), ' ', tI18nComplete.raw('text17313fb7bf82')] })) : null, ' ', tI18nComplete.raw('text52c3509531f1'), ' ', _jsx("span", { className: "text-foreground", children: tI18nComplete.raw('textad26af1426b3') }), ' ', tI18nComplete.raw('textbbdce4215935'), ' ', _jsx("span", { className: "text-foreground", children: tI18nComplete.raw('text8f0d706fff25') }), ' ', tI18nComplete.raw('text41232780dc9c'), ' ', _jsx("span", { className: "text-foreground", children: tI18nComplete.raw('textb949c922b6ef') }), ' ', tI18nComplete.raw('text06a6228ef85f')] }), _jsxs(Link, { href: "/docs/project/secrets", target: "_blank", rel: "noreferrer", className: "text-foreground inline-flex items-center gap-1.5 text-xs font-medium hover:underline", children: [_jsx(BookOpenIcon, { className: "size-3.5 shrink-0" }), tI18nComplete.raw('text7af023c43013')] })] })] }));
204
+ : tI18nComplete.raw('texte5a718af362a'), ' ', tI18nComplete.raw('texte1673f438808'), showEnforced ? (_jsxs(_Fragment, { children: [' ', _jsx("span", { className: "text-foreground", children: tI18nComplete.raw('text82ff5452a98d') }), ' ', tI18nComplete.raw('text49e63b9b35ec'), " ", _jsx("code", { className: "font-mono", children: "secrets" }), ' ', tI18nComplete.raw('text582967534d0f'), ' ', _jsx("code", { className: "font-mono", children: "kortix.yaml" }), ";", ' ', _jsx("code", { className: "font-mono", children: "secrets: all" }), ' ', tI18nComplete.raw('text17313fb7bf82')] })) : null, ' ', tI18nComplete.raw('text52c3509531f1'), ' ', _jsx("span", { className: "text-foreground", children: tI18nComplete.raw('textad26af1426b3') }), ' ', tI18nComplete.raw('textbbdce4215935'), ' ', _jsx("span", { className: "text-foreground", children: tI18nComplete.raw('text8f0d706fff25') }), ' ', tI18nComplete.raw('text41232780dc9c'), ' ', _jsx("span", { className: "text-foreground", children: tI18nComplete.raw('textb949c922b6ef') }), ' ', tI18nComplete.raw('text06a6228ef85f')] }), _jsxs(Link, { href: "/docs/guide#secrets-you-choose-who-uses-them-and-how", target: "_blank", rel: "noreferrer", className: "text-foreground inline-flex items-center gap-1.5 text-xs font-medium hover:underline", children: [_jsx(BookOpenIcon, { className: "size-3.5 shrink-0" }), tI18nComplete.raw('text7af023c43013')] })] })] }));
205
205
  }
206
206
  /**
207
207
  * Normalize whatever the API gave us into the shape we expect. We're defensive
@@ -97,7 +97,7 @@ const STATIC_GROUPS = [
97
97
  tab: 'mcp',
98
98
  label: 'MCP',
99
99
  description: 'Use Kortix from Claude, Claude Code, Cursor, Codex, or any MCP client. You sign in once. Nothing to install.',
100
- docsHref: '/docs/connect/mcp',
100
+ docsHref: '/docs/guide#other-ai-tools-mcp',
101
101
  icon: Mcp,
102
102
  },
103
103
  {
@@ -146,7 +146,7 @@ export const RETIRED_RAIL_ITEMS = [
146
146
  // template's recipe and the record of each time Kortix built a
147
147
  // machine from it.
148
148
  description: 'The recipe for the machine a session runs on, and the record of every time Kortix prepared one.',
149
- docsHref: '/docs/work/runtime',
149
+ docsHref: '/docs/developers#sandbox-templates',
150
150
  icon: Container,
151
151
  },
152
152
  {
@@ -49,8 +49,8 @@ export declare function localizeFeatureFlag<T extends FeatureFlagView>(feature:
49
49
  *
50
50
  * Matches `key` as well as `name` and `description`, and the key is the one
51
51
  * that earns its place: flags get turned on from docs, changelogs and support
52
- * threads that name the raw key (`warm_sessions`), not the display name ("Warm
53
- * sessions"). A search reading only `name` would miss the exact term the reader
52
+ * threads that name the raw key (`us_region`), not the display name ("US
53
+ * Region"). A search reading only `name` would miss the exact term the reader
54
54
  * was handed.
55
55
  *
56
56
  * A blank or whitespace-only query returns the input unchanged — same array,
@@ -125,8 +125,8 @@ export function localizeFeatureFlag(feature, t) {
125
125
  *
126
126
  * Matches `key` as well as `name` and `description`, and the key is the one
127
127
  * that earns its place: flags get turned on from docs, changelogs and support
128
- * threads that name the raw key (`warm_sessions`), not the display name ("Warm
129
- * sessions"). A search reading only `name` would miss the exact term the reader
128
+ * threads that name the raw key (`us_region`), not the display name ("US
129
+ * Region"). A search reading only `name` would miss the exact term the reader
130
130
  * was handed.
131
131
  *
132
132
  * A blank or whitespace-only query returns the input unchanged — same array,
@@ -276,13 +276,10 @@ export function ExperimentalTab({ projectId }) {
276
276
  else
277
277
  apply(key, next);
278
278
  };
279
- const drive = rawFeatures.find((f) => f.key === 'drives');
280
- return (_jsxs(_Fragment, { children: [_jsx(ChannelsSwitchDialog, { open: channelsTarget !== null, onOpenChange: (open) => !open && setChannelsTarget(null), turningOn: channelsTarget === true, projectName: project?.name ?? '', driveOff: !!drive && !drive.enabled && drive.operator_only !== true, onConfirm: (alsoDrive) => {
279
+ return (_jsxs(_Fragment, { children: [_jsx(ChannelsSwitchDialog, { open: channelsTarget !== null, onOpenChange: (open) => !open && setChannelsTarget(null), turningOn: channelsTarget === true, projectName: project?.name ?? '', onConfirm: () => {
281
280
  const target = channelsTarget === true;
282
281
  setChannelsTarget(null);
283
282
  apply('project_channels', target);
284
- if (alsoDrive)
285
- apply('drives', true);
286
283
  } }), _jsx(ExperimentalTabView, { isLoading: projectQuery.isLoading, isError: projectQuery.isError, errorMessage: projectQuery.error?.message ?? '', onRetry: () => projectQuery.refetch(), features: features, pendingKeys: Object.keys(pendingValues), canManage: canEdit, canManageOperatorOnly: isOperator, onToggle: handleToggle, showPermissionNotice: !canEdit && !writeCap.isLoading, query: query, onQueryChange: setQuery, copy: {
287
284
  overridden: t('origin.overridden'),
288
285
  managedByKortix: tI18nComplete.raw('texte9ec6c0ad396'),
@@ -150,9 +150,11 @@ function GeneralWorkspaceCard({ project, canManage, canManageEffort, }) {
150
150
  // write is rolled back by `renameOnError`, and the summary cache this card
151
151
  // reads is never optimistically written), so the effect's equality guard
152
152
  // alone would re-fire the same rename on every `isRenamePending` flip,
153
- // forever. Skipping the attempted name breaks that loop: a failed save
154
- // idles until the user edits again (any settled edit that differs clears
155
- // it), and a successful one clears it in `onSuccess`.
153
+ // forever. Skipping the attempted name breaks that loop: a save, failed or
154
+ // successful, idles until the user edits again (any settled edit that
155
+ // differs clears it). A success keeps it too: the rename refetches the
156
+ // project row (`renameOnSettled`), and a read that still returns the old
157
+ // name would otherwise re-send the same rename on every refetch.
156
158
  const attemptedName = useRef(null);
157
159
  useEffect(() => {
158
160
  setName(project.name);
@@ -161,7 +163,6 @@ function GeneralWorkspaceCard({ project, canManage, canManageEffort, }) {
161
163
  mutationFn: (nextName) => updateProject(project.project_id, { name: nextName }),
162
164
  onMutate: (nextName) => renameOnMutate(queryClient, project.project_id, nextName),
163
165
  onSuccess: (updated) => {
164
- attemptedName.current = null;
165
166
  queryClient.setQueryData(qk.project.summary(project.project_id), updated);
166
167
  },
167
168
  onError: (error, _nextName, context) => {