@kortix/ui 0.15.1 → 0.15.2

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 (56) hide show
  1. package/dist/_vendor/shared/index.d.ts +0 -2
  2. package/dist/artifacts/artifact-frame.d.ts +0 -1
  3. package/dist/artifacts/artifact-frame.js +4 -10
  4. package/dist/artifacts/artifact-session.js +2 -6
  5. package/dist/artifacts/frame-policy.d.ts +1 -1
  6. package/dist/artifacts/frame-policy.js +2 -2
  7. package/dist/customize/sections/view/agent-editor-catalog.js +0 -5
  8. package/dist/customize/triggers/schedule/trigger-list.d.ts +2 -2
  9. package/dist/customize/triggers/schedule/trigger-list.js +12 -18
  10. package/dist/i18n/en.d.ts +8 -185
  11. package/dist/i18n/en.js +13 -190
  12. package/dist/internal/components/agent-mark.js +6 -0
  13. package/dist/internal/components/clickable-path.d.ts +3 -0
  14. package/dist/internal/components/clickable-path.js +4 -1
  15. package/dist/internal/lib/browser-noise/rules/injected-scripts.js +11 -0
  16. package/dist/internal/lib/trigger-clock.d.ts +5 -0
  17. package/dist/internal/lib/trigger-clock.js +15 -0
  18. package/dist/internal/lib/turn-broadcast.d.ts +0 -3
  19. package/dist/internal/lib/use-project-feature-flags.d.ts +2 -0
  20. package/dist/internal/lib/use-project-feature-flags.js +2 -4
  21. package/dist/internal/lib/web-notifications.d.ts +1 -8
  22. package/dist/internal/lib/web-notifications.js +12 -53
  23. package/dist/internal/notifications/notification-bell.d.ts +13 -33
  24. package/dist/internal/notifications/notification-bell.js +14 -117
  25. package/dist/internal/notifications/notification-inbox.d.ts +45 -0
  26. package/dist/internal/notifications/notification-inbox.js +119 -0
  27. package/dist/internal/notifications/notification-rows.d.ts +3 -4
  28. package/dist/internal/notifications/notification-rows.js +1 -4
  29. package/dist/internal/notifications/use-inbox-summary.d.ts +13 -0
  30. package/dist/internal/notifications/use-inbox-summary.js +22 -0
  31. package/dist/internal/notifications/web-push.d.ts +9 -10
  32. package/dist/internal/notifications/web-push.js +9 -10
  33. package/dist/internal/stores/web-notification-store.d.ts +6 -9
  34. package/dist/internal/stores/web-notification-store.js +0 -4
  35. package/dist/lib/routes.d.ts +8 -0
  36. package/dist/lib/routes.js +4 -1
  37. package/dist/markdown/doc-editor/doc-menus.d.ts +1 -10
  38. package/dist/markdown/doc-editor/doc-menus.js +6 -69
  39. package/dist/markdown/file-links.js +21 -0
  40. package/dist/primitives/button.d.ts +1 -1
  41. package/dist/session/header/reminder-parts.d.ts +1 -1
  42. package/dist/session/header/session-site-header.js +2 -6
  43. package/dist/session/panel/session-reminders-panel.js +4 -15
  44. package/dist/session/tool/tools/session-spawn-tool.js +7 -4
  45. package/dist/session/tool/tools/task-tool.js +18 -4
  46. package/dist/styles.css +1 -1
  47. package/dist/workspace/home/access-requests-bell.d.ts +6 -9
  48. package/dist/workspace/home/access-requests-bell.js +8 -10
  49. package/dist/workspace/layout/project-home.js +1 -2
  50. package/dist/workspace/sidebar/project-sidebar.js +2 -6
  51. package/package.json +11 -7
  52. package/skills/kortix-ui/references/custom-dashboard.md +1 -1
  53. package/dist/_vendor/shared/artifact-annotations.d.ts +0 -311
  54. package/dist/_vendor/shared/artifact-comments.d.ts +0 -155
  55. package/dist/internal/hooks/use-notification-center.d.ts +0 -50
  56. package/dist/internal/hooks/use-notification-center.js +0 -151
@@ -2,13 +2,12 @@ import type { ProjectAccessRequest } from '@kortix/sdk';
2
2
  import { type HubTarget } from '../../internal/stores/account-panel-store.js';
3
3
  /**
4
4
  * The pending-access-requests control, floated over the hero's top-right
5
- * corner. With the project's `notification_center` flag on, its glyph is a
6
- * person with a plus, not a bell: the bell is then the notification inbox
7
- * (KRTX-1742), and two bells on one screen would read as one control. With
8
- * the flag off there is no inbox bell, and the glyph stays the bell.
5
+ * corner. Its glyph is a person with a plus, not a bell: the bell names the
6
+ * notification Inbox (KRTX-1742), and two bells on one screen would read as
7
+ * one control.
9
8
  *
10
- * It draws its count with the inbox's `BellMark`, in the yellow "needs you"
11
- * tone: a request waits on the person, so it reads like the sidebar bell.
9
+ * It draws its count with `BellMark`, in the yellow "needs you" tone: a
10
+ * request waits on the person.
12
11
  * Hover opens the people card of the session header's participant stack:
13
12
  * who asked and when, with one way to review.
14
13
  *
@@ -29,13 +28,11 @@ import { type HubTarget } from '../../internal/stores/account-panel-store.js';
29
28
  * runs at 80% of the enter. Under reduced motion the scale is dropped and the
30
29
  * fade stays, because the fade is what says "this is new".
31
30
  */
32
- export declare function AccessRequestsBell({ requests, to, notificationCenter, className, }: {
31
+ export declare function AccessRequestsBell({ requests, to, className, }: {
33
32
  /** The project's pending access requests, newest last as the API returns them. */
34
33
  requests: ProjectAccessRequest[];
35
34
  /** The account hub's Access › Projects pane, scoped to this project.
36
35
  * `null` while `account_id` is still loading — the bell renders inert. */
37
36
  to: HubTarget | null;
38
- /** The project's `notification_center` flag: on, the inbox owns the bell glyph. */
39
- notificationCenter?: boolean;
40
37
  className?: string;
41
38
  }): import("react").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { BellIcon, UserPlusIcon } from '@phosphor-icons/react';
3
+ import { UserPlusIcon } from '@phosphor-icons/react';
4
4
  import { AnimatePresence, m, useReducedMotion } from 'motion/react';
5
5
  import { useState } from 'react';
6
6
  import { BellMark } from '../../internal/notifications/notification-bell.js';
@@ -14,13 +14,12 @@ import { relativeTime } from '../../internal/lib/relative-time.js';
14
14
  import { cn } from '../../internal/lib/utils.js';
15
15
  /**
16
16
  * The pending-access-requests control, floated over the hero's top-right
17
- * corner. With the project's `notification_center` flag on, its glyph is a
18
- * person with a plus, not a bell: the bell is then the notification inbox
19
- * (KRTX-1742), and two bells on one screen would read as one control. With
20
- * the flag off there is no inbox bell, and the glyph stays the bell.
17
+ * corner. Its glyph is a person with a plus, not a bell: the bell names the
18
+ * notification Inbox (KRTX-1742), and two bells on one screen would read as
19
+ * one control.
21
20
  *
22
- * It draws its count with the inbox's `BellMark`, in the yellow "needs you"
23
- * tone: a request waits on the person, so it reads like the sidebar bell.
21
+ * It draws its count with `BellMark`, in the yellow "needs you" tone: a
22
+ * request waits on the person.
24
23
  * Hover opens the people card of the session header's participant stack:
25
24
  * who asked and when, with one way to review.
26
25
  *
@@ -41,15 +40,14 @@ import { cn } from '../../internal/lib/utils.js';
41
40
  * runs at 80% of the enter. Under reduced motion the scale is dropped and the
42
41
  * fade stays, because the fade is what says "this is new".
43
42
  */
44
- export function AccessRequestsBell({ requests, to, notificationCenter = false, className, }) {
43
+ export function AccessRequestsBell({ requests, to, className, }) {
45
44
  const t = useTranslations('hardcodedUi.i18nComplete');
46
45
  const locale = useLocale();
47
46
  const reduceMotion = useReducedMotion();
48
47
  const [open, setOpen] = useState(false);
49
48
  const count = requests.length;
50
49
  const label = `${count} pending access request${count === 1 ? '' : 's'}`;
51
- const Glyph = notificationCenter ? UserPlusIcon : BellIcon;
52
- const body = _jsx(BellMark, { count: count, needsYou: true, icon: Glyph });
50
+ const body = _jsx(BellMark, { count: count, needsYou: true, icon: UserPlusIcon });
53
51
  return (_jsx(AnimatePresence, { children: count > 0 && (_jsx(m.div, { initial: reduceMotion ? { opacity: 0 } : { opacity: 0, scale: 0.95 }, animate: {
54
52
  opacity: 1,
55
53
  scale: 1,
@@ -18,7 +18,6 @@ import { getProject, listProjectAccessRequests, listProjectSandboxes, setProject
18
18
  import { contract, invalidateProject, qk } from '@kortix/sdk/react';
19
19
  import { MY_KORTIX_SANDBOX_SLUG, isMyKortixAgentName } from '../../_vendor/kortix-shared.js';
20
20
  import { AccessRequestsBell } from '../home/access-requests-bell.js';
21
- import { notificationCenterOn } from '../../internal/hooks/use-notification-center.js';
22
21
  import { FirstChat } from '../home/first-chat.js';
23
22
  import { SandboxPicker } from '../home/sandbox-picker.js';
24
23
  import { ProjectHomeWallpaper, ProjectHomeWelcomeBody } from '../home/welcome-body.js';
@@ -229,5 +228,5 @@ function ProjectHomeView({ projectId, onSend, busy, beforeSend, onboarding: onbo
229
228
  return (
230
229
  // A file dropped anywhere on the page attaches to the composer, as on a
231
230
  // session page.
232
- _jsxs(ComposerDropZone, { className: "bg-background relative flex min-h-0 flex-1 flex-col overflow-hidden lg:px-4.5", children: [_jsx(ProjectHomeWallpaper, {}), _jsx(SidebarToggle, { placement: "floating" }), _jsx(AccessRequestsBell, { requests: accessRequests.data?.requests ?? [], to: accessRequestsTo, notificationCenter: notificationCenterOn(projectRowQuery.data) }), firstChatPending || !onboarded || !HomeAnnouncement ? null : _jsx(HomeAnnouncement, {}), firstChat ? (_jsx(FirstChat, { composer: composer })) : (_jsx(ProjectHomeWelcomeBody, { projectId: projectId, onPickSuggestion: applySuggestion, composer: composer }))] }));
231
+ _jsxs(ComposerDropZone, { className: "bg-background relative flex min-h-0 flex-1 flex-col overflow-hidden lg:px-4.5", children: [_jsx(ProjectHomeWallpaper, {}), _jsx(SidebarToggle, { placement: "floating" }), _jsx(AccessRequestsBell, { requests: accessRequests.data?.requests ?? [], to: accessRequestsTo }), firstChatPending || !onboarded || !HomeAnnouncement ? null : _jsx(HomeAnnouncement, {}), firstChat ? (_jsx(FirstChat, { composer: composer })) : (_jsx(ProjectHomeWelcomeBody, { projectId: projectId, onPickSuggestion: applySuggestion, composer: composer }))] }));
233
232
  }
@@ -5,7 +5,6 @@ import { Button } from '../../primitives/button.js';
5
5
  import Hint from '../../primitives/hint.js';
6
6
  import { Kbd, KbdGroup } from '../../primitives/kbd.js';
7
7
  import { Sidebar, SidebarContent, SidebarGroup, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarRail, useSidebar, } from '../../primitives/sidebar.js';
8
- import { NotificationBell } from '../../internal/notifications/notification-bell.js';
9
8
  import { ComputerConnectModal } from '../../internal/tunnel/computer-connect.js';
10
9
  import { ConnectMcpModal } from '../../internal/layout/connect-mcp-modal.js';
11
10
  import { ProjectMcpNavItem } from './footer/project-mcp-nav.js';
@@ -107,13 +106,10 @@ export function ProjectSidebar({ projectId, menu, onOpenSearch, }) {
107
106
  // the square positioning box — while the visible card is the rounded
108
107
  // inner box, which already carries `bg-sidebar`. Painting it twice put a
109
108
  // square fill behind the flyout card and it showed at all four corners.
110
- className: "[scrollbar-width:'none'] [-ms-overflow-style:'none'] [&::-webkit-scrollbar]:hidden", children: [_jsx(SidebarHeader, { className: "kx-project-sidebar-header space-y-2", "data-peek": peek ? '' : undefined, children: _jsxs("div", { className: cn('flex w-full items-center gap-1', !peek && 'kx-titlebar-row kx-titlebar-band-height kx-project-sidebar-titlebar'), children: [menu ? _jsx("div", { className: "min-w-0", children: menu }) : null, _jsxs("div", { className: "ml-auto flex shrink-0 items-center gap-0.5", children: [_jsx(NotificationBell, { projectId: projectId, surface: "bg-sidebar", onNavigate: () => {
111
- if (isMobile)
112
- setOpenMobile(false);
113
- } }), onOpenSearch && (_jsx(Hint, { side: "bottom", label: _jsxs("span", { className: "flex items-center gap-1.5", children: [t('search'), !isMobile && (_jsxs(KbdGroup, { children: [_jsx(Kbd, { className: "font-mono", children: modSymbol }), _jsx(Kbd, { className: "font-mono", children: "K" })] }))] }), children: _jsx(Button, { type: "button", "aria-label": t('search'), variant: "ghost", size: "icon", onClick: handleOpenSearch,
109
+ className: "[scrollbar-width:'none'] [-ms-overflow-style:'none'] [&::-webkit-scrollbar]:hidden", children: [_jsx(SidebarHeader, { className: "kx-project-sidebar-header space-y-2", "data-peek": peek ? '' : undefined, children: _jsxs("div", { className: cn('flex w-full items-center gap-1', !peek && 'kx-titlebar-row kx-titlebar-band-height kx-project-sidebar-titlebar'), children: [menu ? _jsx("div", { className: "min-w-0", children: menu }) : null, _jsxs("div", { className: "ml-auto flex shrink-0 items-center gap-0.5", children: [onOpenSearch && (_jsx(Hint, { side: "bottom", label: _jsxs("span", { className: "flex items-center gap-1.5", children: [t('search'), !isMobile && (_jsxs(KbdGroup, { children: [_jsx(Kbd, { className: "font-mono", children: modSymbol }), _jsx(Kbd, { className: "font-mono", children: "K" })] }))] }), children: _jsx(Button, { type: "button", "aria-label": t('search'), variant: "ghost", size: "icon", onClick: handleOpenSearch,
114
110
  // The palette's only pointer-reachable entry: the ≈26px ghost
115
111
  // box clears the 44px floor with the vertical-only extension —
116
112
  // vertical-only because this titlebar row packs several
117
113
  // controls side by side (KRTX-2004).
118
- className: "shrink-0 hit-area-y-3", children: _jsx(MagnifyingGlassIcon, { className: "size-4" }) }) })), isMobile && (_jsx(Button, { type: "button", "aria-label": tCommon('close'), variant: "ghost", size: "icon", onClick: () => setOpenMobile(false), className: "shrink-0 hit-area-y-3", children: _jsx(Close, {}) })), !isMobile && !peek && (_jsx(Hint, { side: "bottom", label: _jsxs("span", { className: "flex items-center gap-1.5", children: [isExpanded ? t('collapse') : t('pin'), _jsxs(KbdGroup, { children: [_jsx(Kbd, { className: "font-mono", children: modSymbol }), _jsx(Kbd, { className: "font-mono", children: "B" })] })] }), children: _jsx(Button, { type: "button", "aria-label": isExpanded ? t('collapse') : t('pin'), variant: "ghost", size: "icon", onClick: toggleSidebar, className: "shrink-0", children: _jsx(PanelLeft, { className: "cn-rtl-flip" }) }) }))] })] }) }), _jsx(SidebarContent, { className: "relative min-h-0 flex-1 [scrollbar-width:'none'] overflow-hidden [-ms-overflow-style:'none'] [&::-webkit-scrollbar]:hidden [&_[data-sidebar=menu-button]]:pl-2", children: _jsxs("div", { className: "flex h-full min-h-0 flex-col space-y-2", children: [chat ? null : (_jsx(SidebarGroup, { className: "py-0", children: _jsxs(SidebarMenu, { children: [chat ? null : (_jsx(SidebarMenuItem, { children: creatingSession ? (_jsx(SidebarMenuButton, { disabled: true, "aria-busy": true, className: "group/menu-button text-sidebar-foreground relative", children: newSessionRowBody })) : (_jsx(SidebarMenuButton, { asChild: true, className: "group/menu-button text-sidebar-foreground relative", children: _jsx(Link, { href: uiRoutes().project(projectId), prefetch: true, onClick: handleNewSessionClick, children: newSessionRowBody }) })) })), _jsx(ProjectNavItems, { projectId: projectId })] }) })), _jsx(SidebarGroup, { className: "min-h-0 flex-1 flex-col py-0", ref: sessionsGroupRef, children: chat ? (_jsxs(_Fragment, { children: [_jsx("div", { className: "min-h-0 flex-1", children: _jsx(ProjectSpacesNav, { projectId: projectId }) }), _jsx(SidebarMoreGroup, { projectId: projectId, footer: _jsx(SidebarMenu, { className: "gap-1", children: connectRows }) })] })) : (_jsx(ProjectSessionList, { projectId: projectId })) }), _jsx(SidebarGroup, { className: "mt-auto", children: _jsxs(SidebarMenu, { className: "gap-1", children: [_jsx(ProjectRepositoryDisconnectedAlert, { projectId: projectId }), _jsx(ProjectSandboxAlert, { projectId: projectId }), _jsx(ProjectManifestIssuesAlert, { projectId: projectId }), _jsx(SidebarBalanceWarning, { accountId: accountId }), chat ? null : connectRows] }) })] }) }), _jsx(SidebarRail, { "aria-label": t('resize'), title: t('resizeHelp') })] }), _jsx(ComputerConnectModal, { projectId: projectId, open: computerConnectOpen, onOpenChange: setComputerConnectOpen }), _jsx(AppsModal, { chrome: chrome, onOpenComputer: () => setComputerConnectOpen(true), onOpenMcp: () => setConnectMcpOpen(true) }), _jsx(ConnectMcpModal, { open: connectMcpOpen, onOpenChange: setConnectMcpOpen })] }));
114
+ className: "shrink-0 hit-area-y-3", children: _jsx(MagnifyingGlassIcon, { className: "size-4" }) }) })), isMobile && (_jsx(Button, { type: "button", "aria-label": tCommon('close'), variant: "ghost", size: "icon", onClick: () => setOpenMobile(false), className: "shrink-0 hit-area-y-3", children: _jsx(Close, {}) })), !isMobile && !peek && (_jsx(Hint, { side: "bottom", label: _jsxs("span", { className: "flex items-center gap-1.5", children: [isExpanded ? t('collapse') : t('pin'), _jsxs(KbdGroup, { children: [_jsx(Kbd, { className: "font-mono", children: modSymbol }), _jsx(Kbd, { className: "font-mono", children: "B" })] })] }), children: _jsx(Button, { type: "button", "aria-label": isExpanded ? t('collapse') : t('pin'), variant: "ghost", size: "icon", onClick: toggleSidebar, className: "shrink-0", children: _jsx(PanelLeft, { className: "cn-rtl-flip" }) }) }))] })] }) }), _jsx(SidebarContent, { className: "relative min-h-0 flex-1 [scrollbar-width:'none'] overflow-hidden [-ms-overflow-style:'none'] [&::-webkit-scrollbar]:hidden [&_[data-sidebar=menu-button]]:pl-2", children: _jsxs("div", { className: "flex h-full min-h-0 flex-col space-y-2", children: [_jsx(SidebarGroup, { className: "py-0", children: _jsxs(SidebarMenu, { children: [chat ? null : (_jsx(SidebarMenuItem, { children: creatingSession ? (_jsx(SidebarMenuButton, { disabled: true, "aria-busy": true, className: "group/menu-button text-sidebar-foreground relative", children: newSessionRowBody })) : (_jsx(SidebarMenuButton, { asChild: true, className: "group/menu-button text-sidebar-foreground relative", children: _jsx(Link, { href: uiRoutes().project(projectId), prefetch: true, onClick: handleNewSessionClick, children: newSessionRowBody }) })) })), chat ? null : _jsx(ProjectNavItems, { projectId: projectId })] }) }), _jsx(SidebarGroup, { className: "min-h-0 flex-1 flex-col py-0", ref: sessionsGroupRef, children: chat ? (_jsxs(_Fragment, { children: [_jsx("div", { className: "min-h-0 flex-1", children: _jsx(ProjectSpacesNav, { projectId: projectId }) }), _jsx(SidebarMoreGroup, { projectId: projectId, footer: _jsx(SidebarMenu, { className: "gap-1", children: connectRows }) })] })) : (_jsx(ProjectSessionList, { projectId: projectId })) }), _jsx(SidebarGroup, { className: "mt-auto", children: _jsxs(SidebarMenu, { className: "gap-1", children: [_jsx(ProjectRepositoryDisconnectedAlert, { projectId: projectId }), _jsx(ProjectSandboxAlert, { projectId: projectId }), _jsx(ProjectManifestIssuesAlert, { projectId: projectId }), _jsx(SidebarBalanceWarning, { accountId: accountId }), chat ? null : connectRows] }) })] }) }), _jsx(SidebarRail, { "aria-label": t('resize'), title: t('resizeHelp') })] }), _jsx(ComputerConnectModal, { projectId: projectId, open: computerConnectOpen, onOpenChange: setComputerConnectOpen }), _jsx(AppsModal, { chrome: chrome, onOpenComputer: () => setComputerConnectOpen(true), onOpenMcp: () => setConnectMcpOpen(true) }), _jsx(ConnectMcpModal, { open: connectMcpOpen, onOpenChange: setConnectMcpOpen })] }));
119
115
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kortix/ui",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "description": "Kortix UI: the shared React component library for apps/web, Kortix Apps and SDK hosts. Tailwind v4 classes, themed by CSS variables.",
5
5
  "type": "module",
6
6
  "license": "Elastic-2.0",
@@ -1003,10 +1003,6 @@
1003
1003
  "types": "./dist/internal/hooks/use-debounced-value.d.ts",
1004
1004
  "import": "./dist/internal/hooks/use-debounced-value.js"
1005
1005
  },
1006
- "./internal/hooks/use-notification-center": {
1007
- "types": "./dist/internal/hooks/use-notification-center.d.ts",
1008
- "import": "./dist/internal/hooks/use-notification-center.js"
1009
- },
1010
1006
  "./internal/hooks/use-slash-focus": {
1011
1007
  "types": "./dist/internal/hooks/use-slash-focus.d.ts",
1012
1008
  "import": "./dist/internal/hooks/use-slash-focus.js"
@@ -1267,6 +1263,10 @@
1267
1263
  "types": "./dist/internal/notifications/notification-bell.d.ts",
1268
1264
  "import": "./dist/internal/notifications/notification-bell.js"
1269
1265
  },
1266
+ "./internal/notifications/notification-inbox": {
1267
+ "types": "./dist/internal/notifications/notification-inbox.d.ts",
1268
+ "import": "./dist/internal/notifications/notification-inbox.js"
1269
+ },
1270
1270
  "./internal/notifications/notification-rows": {
1271
1271
  "types": "./dist/internal/notifications/notification-rows.d.ts",
1272
1272
  "import": "./dist/internal/notifications/notification-rows.js"
@@ -1275,6 +1275,10 @@
1275
1275
  "types": "./dist/internal/notifications/session-toast-cards.d.ts",
1276
1276
  "import": "./dist/internal/notifications/session-toast-cards.js"
1277
1277
  },
1278
+ "./internal/notifications/use-inbox-summary": {
1279
+ "types": "./dist/internal/notifications/use-inbox-summary.d.ts",
1280
+ "import": "./dist/internal/notifications/use-inbox-summary.js"
1281
+ },
1278
1282
  "./internal/notifications/web-push": {
1279
1283
  "types": "./dist/internal/notifications/web-push.d.ts",
1280
1284
  "import": "./dist/internal/notifications/web-push.js"
@@ -2189,7 +2193,7 @@
2189
2193
  "@extend-ai/react-docx": "^0.7.5",
2190
2194
  "@extend-ai/react-xlsx": "0.13.4",
2191
2195
  "@glideapps/glide-data-grid": "6.0.4-alpha24",
2192
- "@kortix/llm-catalog": "0.15.1",
2196
+ "@kortix/llm-catalog": "0.15.2",
2193
2197
  "@lezer/highlight": "1.2.3",
2194
2198
  "@paper-design/shaders-react": "^0.0.76",
2195
2199
  "@phosphor-icons/react": "2.1.10",
@@ -2288,7 +2292,7 @@
2288
2292
  "yaml": "^2.8.2"
2289
2293
  },
2290
2294
  "peerDependencies": {
2291
- "@kortix/sdk": "^0.15.1",
2295
+ "@kortix/sdk": "^0.15.2",
2292
2296
  "@tanstack/react-query": "^5.75.2",
2293
2297
  "@types/react": ">=18",
2294
2298
  "react": ">=19",
@@ -202,7 +202,7 @@ A Next.js host passes `next/link` and `{ useRouter, usePathname, useSearchParams
202
202
 
203
203
  ## 5. The project shell
204
204
 
205
- Your sidebar chrome around Kortix's session list. Every URL the components link to comes from one route table, `setUiRoutes` (`@kortix/ui`), called once at module load. The defaults are Kortix's own paths: `project` `/projects/<id>`, `session` `/projects/<id>/sessions/<sessionId>`, `sessions` `/projects/<id>/sessions` (`?view=archived|deleted`), `files` `/projects/<id>/files`, `drive` `/projects/<id>/drive`, `apps` `/projects/<id>/apps`, `members` `/projects/<id>/members`, `sandboxSettings` `/projects/<id>/admin/sandbox`, `customize` `/projects/<id>/customize/<page>` (agents, skills, connectors, triggers, reminders, models, secrets, review, settings), `admin` `/projects/<id>/admin/<section>` (it follows `customize` when you map only `customize`), `goals` `/projects/<id>/goals` (flag `goals`), `artifacts` `/projects/<id>/artifacts` (flag `artifacts`), and, while the project's `chat` flag is on, `space` `/projects/<id>/spaces/<slug>`, `memory` `/projects/<id>/memory`, `channel` `/projects/<id>/c/<slug>` and `dm` `/projects/<id>/dm/<agent>`. Return your own path for a page you serve elsewhere. Return `null` for a page you do not serve: every link to it is hidden. `project`, `session`, `channel` and `dm` cannot be null. This app serves the project
205
+ Your sidebar chrome around Kortix's session list. Every URL the components link to comes from one route table, `setUiRoutes` (`@kortix/ui`), called once at module load. The defaults are Kortix's own paths: `project` `/projects/<id>`, `session` `/projects/<id>/sessions/<sessionId>`, `sessions` `/projects/<id>/sessions` (`?view=archived|deleted`), `files` `/projects/<id>/files`, `drive` `/projects/<id>/drive`, `apps` `/projects/<id>/apps`, `members` `/projects/<id>/members`, `sandboxSettings` `/projects/<id>/admin/sandbox`, `customize` `/projects/<id>/customize/<page>` (agents, skills, connectors, triggers, reminders, models, secrets, review, settings), `admin` `/projects/<id>/admin/<section>` (it follows `customize` when you map only `customize`), `goals` `/projects/<id>/goals` (flag `goals`), `artifacts` `/projects/<id>/artifacts`, and, while the project's `chat` flag is on, `space` `/projects/<id>/spaces/<slug>`, `memory` `/projects/<id>/memory`, `channel` `/projects/<id>/c/<slug>` and `dm` `/projects/<id>/dm/<agent>`. Return your own path for a page you serve elsewhere. Return `null` for a page you do not serve: every link to it is hidden. `project`, `session`, `channel` and `dm` cannot be null. This app serves the project
206
206
  home, its files and a session (section 7), so it maps the other pages to `null`.
207
207
 
208
208
  ```tsx
@@ -1,311 +0,0 @@
1
- import { z } from "zod";
2
- export declare const ARTIFACT_ANNOTATION_LIMITS: {
3
- readonly messageBytes: 65536;
4
- readonly captureBytes: 2097152;
5
- readonly captureChunkChars: 49152;
6
- readonly captureChunkBytes: 36864;
7
- readonly captureChunks: 57;
8
- readonly captureEdge: 2048;
9
- readonly capturePixels: 4194304;
10
- readonly captureSvgBytes: 8388608;
11
- readonly captureTimeout: 10000;
12
- readonly chunkItems: 64;
13
- readonly chunks: 256;
14
- readonly elements: 8192;
15
- readonly texts: 8192;
16
- readonly textUnits: 524288;
17
- readonly pins: 1000;
18
- readonly pinLabel: 64;
19
- readonly ranges: 64;
20
- readonly rects: 64;
21
- readonly coordinate: 10000000;
22
- readonly viewport: 100000;
23
- };
24
- declare const rectSchema: z.ZodObject<{
25
- x: z.ZodNumber;
26
- y: z.ZodNumber;
27
- width: z.ZodNumber;
28
- height: z.ZodNumber;
29
- }, z.core.$strict>;
30
- declare const viewportSchema: z.ZodObject<{
31
- width: z.ZodNumber;
32
- height: z.ZodNumber;
33
- scroll: z.ZodObject<{
34
- x: z.ZodNumber;
35
- y: z.ZodNumber;
36
- }, z.core.$strict>;
37
- }, z.core.$strict>;
38
- export type ArtifactAnnotationRect = z.infer<typeof rectSchema>;
39
- export type ArtifactAnnotationViewport = z.infer<typeof viewportSchema>;
40
- export declare const artifactAnnotationCaptureFailureSchema: z.ZodEnum<{
41
- stale: "stale";
42
- unavailable: "unavailable";
43
- tainted: "tainted";
44
- too_large: "too_large";
45
- cancelled: "cancelled";
46
- timeout: "timeout";
47
- }>;
48
- export type ArtifactAnnotationCaptureFailure = z.infer<typeof artifactAnnotationCaptureFailureSchema>;
49
- declare const candidateSchema: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
50
- type: "text";
51
- quote: string;
52
- prefix: string;
53
- suffix: string;
54
- } | {
55
- offset: {
56
- x: number;
57
- y: number;
58
- };
59
- selector: string;
60
- snippet: string;
61
- viewport_width: number;
62
- scroll: {
63
- x: number;
64
- y: number;
65
- };
66
- type: "point";
67
- } | {
68
- offset: {
69
- x: number;
70
- y: number;
71
- width: number;
72
- height: number;
73
- };
74
- selector: string;
75
- snippet: string;
76
- viewport_width: number;
77
- scroll: {
78
- x: number;
79
- y: number;
80
- };
81
- type: "region";
82
- }, unknown>>;
83
- export declare const artifactAnnotationFrameMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
84
- type: z.ZodLiteral<"ready">;
85
- kortix: z.ZodLiteral<"annotate">;
86
- v: z.ZodLiteral<1>;
87
- }, z.core.$strict>, z.ZodObject<{
88
- type: z.ZodLiteral<"layout">;
89
- revision: z.ZodNumber;
90
- chunk: z.ZodNumber;
91
- final: z.ZodBoolean;
92
- complete: z.ZodBoolean;
93
- viewport: z.ZodObject<{
94
- width: z.ZodNumber;
95
- height: z.ZodNumber;
96
- scroll: z.ZodObject<{
97
- x: z.ZodNumber;
98
- y: z.ZodNumber;
99
- }, z.core.$strict>;
100
- }, z.core.$strict>;
101
- elements: z.ZodArray<z.ZodObject<{
102
- n: z.ZodNumber;
103
- selector: z.ZodString;
104
- snippet: z.ZodString;
105
- rect: z.ZodObject<{
106
- x: z.ZodNumber;
107
- y: z.ZodNumber;
108
- width: z.ZodNumber;
109
- height: z.ZodNumber;
110
- }, z.core.$strict>;
111
- }, z.core.$strict>>;
112
- texts: z.ZodArray<z.ZodObject<{
113
- n: z.ZodNumber;
114
- offset: z.ZodNumber;
115
- text: z.ZodString;
116
- }, z.core.$strict>>;
117
- kortix: z.ZodLiteral<"annotate">;
118
- v: z.ZodLiteral<1>;
119
- }, z.core.$strict>, z.ZodObject<{
120
- type: z.ZodLiteral<"candidate">;
121
- revision: z.ZodNumber;
122
- anchor: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
123
- type: "text";
124
- quote: string;
125
- prefix: string;
126
- suffix: string;
127
- } | {
128
- offset: {
129
- x: number;
130
- y: number;
131
- };
132
- selector: string;
133
- snippet: string;
134
- viewport_width: number;
135
- scroll: {
136
- x: number;
137
- y: number;
138
- };
139
- type: "point";
140
- } | {
141
- offset: {
142
- x: number;
143
- y: number;
144
- width: number;
145
- height: number;
146
- };
147
- selector: string;
148
- snippet: string;
149
- viewport_width: number;
150
- scroll: {
151
- x: number;
152
- y: number;
153
- };
154
- type: "region";
155
- }, unknown>>;
156
- rect: z.ZodOptional<z.ZodObject<{
157
- x: z.ZodNumber;
158
- y: z.ZodNumber;
159
- width: z.ZodNumber;
160
- height: z.ZodNumber;
161
- }, z.core.$strict>>;
162
- kortix: z.ZodLiteral<"annotate">;
163
- v: z.ZodLiteral<1>;
164
- }, z.core.$strict>, z.ZodObject<{
165
- type: z.ZodLiteral<"selection">;
166
- state: z.ZodEnum<{
167
- none: "none";
168
- too_long: "too_long";
169
- }>;
170
- rect: z.ZodOptional<z.ZodObject<{
171
- x: z.ZodNumber;
172
- y: z.ZodNumber;
173
- width: z.ZodNumber;
174
- height: z.ZodNumber;
175
- }, z.core.$strict>>;
176
- moved: z.ZodOptional<z.ZodLiteral<true>>;
177
- kortix: z.ZodLiteral<"annotate">;
178
- v: z.ZodLiteral<1>;
179
- }, z.core.$strict>, z.ZodObject<{
180
- type: z.ZodLiteral<"key">;
181
- key: z.ZodEnum<{
182
- escape: "escape";
183
- comment: "comment";
184
- }>;
185
- kortix: z.ZodLiteral<"annotate">;
186
- v: z.ZodLiteral<1>;
187
- }, z.core.$strict>, z.ZodObject<{
188
- type: z.ZodLiteral<"focus">;
189
- n: z.ZodNumber;
190
- kortix: z.ZodLiteral<"annotate">;
191
- v: z.ZodLiteral<1>;
192
- }, z.core.$strict>, z.ZodObject<{
193
- type: z.ZodLiteral<"pointer">;
194
- revision: z.ZodNumber;
195
- at: z.ZodNullable<z.ZodObject<{
196
- n: z.ZodNumber;
197
- x: z.ZodNumber;
198
- y: z.ZodNumber;
199
- }, z.core.$strict>>;
200
- kortix: z.ZodLiteral<"annotate">;
201
- v: z.ZodLiteral<1>;
202
- }, z.core.$strict>, z.ZodObject<{
203
- type: z.ZodLiteral<"capture_start">;
204
- mime: z.ZodLiteral<"image/png">;
205
- width: z.ZodNumber;
206
- height: z.ZodNumber;
207
- bytes: z.ZodNumber;
208
- chunks: z.ZodNumber;
209
- request: z.ZodNumber;
210
- revision: z.ZodNumber;
211
- kortix: z.ZodLiteral<"annotate">;
212
- v: z.ZodLiteral<1>;
213
- }, z.core.$strict>, z.ZodObject<{
214
- type: z.ZodLiteral<"capture_chunk">;
215
- index: z.ZodNumber;
216
- data: z.ZodString;
217
- request: z.ZodNumber;
218
- revision: z.ZodNumber;
219
- kortix: z.ZodLiteral<"annotate">;
220
- v: z.ZodLiteral<1>;
221
- }, z.core.$strict>, z.ZodObject<{
222
- type: z.ZodLiteral<"capture_complete">;
223
- request: z.ZodNumber;
224
- revision: z.ZodNumber;
225
- kortix: z.ZodLiteral<"annotate">;
226
- v: z.ZodLiteral<1>;
227
- }, z.core.$strict>, z.ZodObject<{
228
- type: z.ZodLiteral<"capture_error">;
229
- reason: z.ZodEnum<{
230
- stale: "stale";
231
- unavailable: "unavailable";
232
- tainted: "tainted";
233
- too_large: "too_large";
234
- cancelled: "cancelled";
235
- timeout: "timeout";
236
- }>;
237
- request: z.ZodNumber;
238
- revision: z.ZodNumber;
239
- kortix: z.ZodLiteral<"annotate">;
240
- v: z.ZodLiteral<1>;
241
- }, z.core.$strict>], "type">;
242
- export declare const artifactAnnotationHostMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
243
- type: z.ZodLiteral<"mode">;
244
- mode: z.ZodEnum<{
245
- off: "off";
246
- text: "text";
247
- comment: "comment";
248
- }>;
249
- kortix: z.ZodLiteral<"annotate">;
250
- v: z.ZodLiteral<1>;
251
- }, z.core.$strict>, z.ZodObject<{
252
- type: z.ZodLiteral<"request_layout">;
253
- kortix: z.ZodLiteral<"annotate">;
254
- v: z.ZodLiteral<1>;
255
- }, z.core.$strict>, z.ZodObject<{
256
- type: z.ZodLiteral<"track">;
257
- pointer: z.ZodBoolean;
258
- kortix: z.ZodLiteral<"annotate">;
259
- v: z.ZodLiteral<1>;
260
- }, z.core.$strict>, z.ZodObject<{
261
- type: z.ZodLiteral<"capture">;
262
- rect: z.ZodObject<{
263
- x: z.ZodNumber;
264
- y: z.ZodNumber;
265
- width: z.ZodNumber;
266
- height: z.ZodNumber;
267
- }, z.core.$strict>;
268
- request: z.ZodNumber;
269
- revision: z.ZodNumber;
270
- kortix: z.ZodLiteral<"annotate">;
271
- v: z.ZodLiteral<1>;
272
- }, z.core.$strict>, z.ZodObject<{
273
- type: z.ZodLiteral<"cancel_capture">;
274
- request: z.ZodNumber;
275
- kortix: z.ZodLiteral<"annotate">;
276
- v: z.ZodLiteral<1>;
277
- }, z.core.$strict>, z.ZodObject<{
278
- type: z.ZodLiteral<"draw">;
279
- revision: z.ZodNumber;
280
- pins: z.ZodArray<z.ZodObject<{
281
- n: z.ZodNumber;
282
- rects: z.ZodArray<z.ZodObject<{
283
- x: z.ZodNumber;
284
- y: z.ZodNumber;
285
- width: z.ZodNumber;
286
- height: z.ZodNumber;
287
- }, z.core.$strict>>;
288
- ranges: z.ZodArray<z.ZodObject<{
289
- n: z.ZodNumber;
290
- start: z.ZodNumber;
291
- end: z.ZodNumber;
292
- }, z.core.$strict>>;
293
- label: z.ZodOptional<z.ZodString>;
294
- }, z.core.$strict>>;
295
- active: z.ZodNullable<z.ZodNumber>;
296
- focus: z.ZodBoolean;
297
- kortix: z.ZodLiteral<"annotate">;
298
- v: z.ZodLiteral<1>;
299
- }, z.core.$strict>], "type">;
300
- export type ArtifactAnnotationCandidate = z.infer<typeof candidateSchema>;
301
- export type ArtifactAnnotationFrameMessage = z.infer<typeof artifactAnnotationFrameMessageSchema>;
302
- export type ArtifactAnnotationHostMessage = z.infer<typeof artifactAnnotationHostMessageSchema>;
303
- export type ArtifactAnnotationLayout = Extract<ArtifactAnnotationFrameMessage, {
304
- type: "layout";
305
- }>;
306
- export type ArtifactAnnotationPin = Extract<ArtifactAnnotationHostMessage, {
307
- type: "draw";
308
- }>["pins"][number];
309
- export declare function parseArtifactAnnotationFrameMessage(value: unknown): ArtifactAnnotationFrameMessage | null;
310
- export declare function parseArtifactAnnotationHostMessage(value: unknown): ArtifactAnnotationHostMessage | null;
311
- export {};