@kortix/ui 0.16.4 → 0.16.5

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 (100) hide show
  1. package/dist/customize/sections/view/review-center-connected.js +64 -71
  2. package/dist/customize/sections/view/secret-delivery.d.ts +11 -20
  3. package/dist/customize/sections/view/secret-delivery.js +20 -29
  4. package/dist/customize/sections/view/secrets-view.js +9 -24
  5. package/dist/i18n/en.d.ts +116 -13
  6. package/dist/i18n/en.js +127 -24
  7. package/dist/i18n/ui-catalog/product-catalog-translation-keys.generated.js +2 -0
  8. package/dist/internal/auth/auth-card-shell.d.ts +24 -3
  9. package/dist/internal/auth/auth-card-shell.js +15 -8
  10. package/dist/internal/auth/auth-primitives.d.ts +15 -2
  11. package/dist/internal/auth/auth-primitives.js +22 -5
  12. package/dist/internal/components/agent-mark.d.ts +2 -1
  13. package/dist/internal/components/agent-mark.js +14 -3
  14. package/dist/internal/hooks/use-review-session-summary.d.ts +1 -1
  15. package/dist/internal/hooks/use-review-session-summary.js +1 -1
  16. package/dist/internal/layout/project-nav-row.d.ts +3 -1
  17. package/dist/internal/layout/project-nav-row.js +2 -2
  18. package/dist/markdown/setup-links/secret-intake-form.d.ts +4 -1
  19. package/dist/markdown/setup-links/secret-intake-form.js +60 -16
  20. package/dist/markdown/setup-links/setup-link-button.js +6 -1
  21. package/dist/session/agents/agent-hover-card.d.ts +26 -0
  22. package/dist/session/agents/agent-hover-card.js +70 -0
  23. package/dist/session/agents/agent-strip.js +33 -7
  24. package/dist/session/agents/agent-surface.d.ts +26 -1
  25. package/dist/session/agents/agent-surface.js +57 -6
  26. package/dist/session/agents/held-messages.js +2 -2
  27. package/dist/session/agents/subagent-dialog-content.js +2 -2
  28. package/dist/session/composer/ComposerCard.js +4 -1
  29. package/dist/session/composer/composer-toolbar.d.ts +8 -1
  30. package/dist/session/composer/composer-toolbar.js +2 -2
  31. package/dist/session/composer/dictation/dictation-control.d.ts +10 -0
  32. package/dist/session/composer/dictation/dictation-control.js +28 -0
  33. package/dist/session/composer/dictation/dictation-state.d.ts +26 -0
  34. package/dist/session/composer/dictation/dictation-state.js +71 -0
  35. package/dist/session/composer/dictation/recorder.d.ts +30 -0
  36. package/dist/session/composer/dictation/recorder.js +129 -0
  37. package/dist/session/composer/dictation/use-composer-dictation.d.ts +25 -0
  38. package/dist/session/composer/dictation/use-composer-dictation.js +218 -0
  39. package/dist/session/composer/queued-prompt-list.js +5 -1
  40. package/dist/session/panel/easy/apps-card.js +3 -10
  41. package/dist/session/panel/easy/background-tasks-card.d.ts +23 -0
  42. package/dist/session/panel/easy/background-tasks-card.js +119 -0
  43. package/dist/session/panel/easy/change-requests-card.js +1 -1
  44. package/dist/session/panel/easy/changes-card.js +4 -6
  45. package/dist/session/panel/easy/context-card.js +8 -9
  46. package/dist/session/panel/easy/context-meter.d.ts +2 -0
  47. package/dist/session/panel/easy/context-meter.js +18 -4
  48. package/dist/session/panel/easy/detail-view.js +4 -2
  49. package/dist/session/panel/easy/easy-panel-logic.d.ts +4 -15
  50. package/dist/session/panel/easy/easy-panel-logic.js +4 -17
  51. package/dist/session/panel/easy/easy-panel.js +5 -4
  52. package/dist/session/panel/easy/outputs-card.d.ts +1 -13
  53. package/dist/session/panel/easy/outputs-card.js +14 -40
  54. package/dist/session/panel/easy/panel-card.d.ts +13 -40
  55. package/dist/session/panel/easy/panel-card.js +17 -55
  56. package/dist/session/panel/easy/plan-card.js +4 -7
  57. package/dist/session/panel/model-switch-event.d.ts +2 -2
  58. package/dist/session/panel/model-switch-event.js +13 -9
  59. package/dist/session/panel/session-panel-provider.d.ts +2 -1
  60. package/dist/session/panel/session-panel-provider.js +3 -3
  61. package/dist/session/panel/shared/derive-panels.js +14 -1
  62. package/dist/session/panel/shared/use-panel-handoffs.d.ts +0 -1
  63. package/dist/session/panel/shared/use-panel-handoffs.js +3 -15
  64. package/dist/session/thread/chat-minimap.js +7 -1
  65. package/dist/session/thread/session-chat.js +59 -15
  66. package/dist/session/tool/shared/infrastructure-contexts.d.ts +2 -0
  67. package/dist/session/tool/shared/infrastructure-contexts.js +2 -0
  68. package/dist/session/tool/shared/infrastructure-row-header.js +4 -1
  69. package/dist/session/tool/shared/infrastructure-rows.js +19 -19
  70. package/dist/session/tool/tool-part-renderer.js +23 -9
  71. package/dist/session/tool/tools/bash-tool.js +3 -2
  72. package/dist/session/tool/tools/codemode-tool.d.ts +15 -0
  73. package/dist/session/tool/tools/codemode-tool.js +54 -2
  74. package/dist/session/tool/tools/kortix-action-tool.d.ts +1 -0
  75. package/dist/session/tool/tools/kortix-action-tool.js +19 -8
  76. package/dist/session/tool/tools/multi-agent-tool-bodies.d.ts +8 -1
  77. package/dist/session/tool/tools/multi-agent-tool-bodies.js +76 -10
  78. package/dist/session/tool/tools/task-tool.js +17 -5
  79. package/dist/session/turn/peer-message-row.d.ts +3 -0
  80. package/dist/session/turn/peer-message-row.js +8 -2
  81. package/dist/session/turn/subagent-notice-row.js +5 -3
  82. package/dist/styles.css +1 -1
  83. package/dist/test-utils/intl.d.ts +116 -13
  84. package/dist/workspace/projects/modal/project-icon-field.d.ts +3 -1
  85. package/dist/workspace/projects/modal/project-icon-field.js +3 -3
  86. package/dist/workspace/review/review-center.d.ts +9 -1
  87. package/dist/workspace/review/review-center.js +107 -14
  88. package/dist/workspace/review/review-detail.d.ts +19 -0
  89. package/dist/workspace/review/review-detail.js +18 -3
  90. package/dist/workspace/review/review-swipe-deck.d.ts +27 -0
  91. package/dist/workspace/review/review-swipe-deck.js +304 -0
  92. package/dist/workspace/review/review-swipe.d.ts +17 -0
  93. package/dist/workspace/review/review-swipe.js +10 -0
  94. package/dist/workspace/sidebar/footer/project-review-nav.d.ts +13 -0
  95. package/dist/workspace/sidebar/footer/project-review-nav.js +29 -0
  96. package/dist/workspace/sidebar/project-nav-items.d.ts +3 -1
  97. package/dist/workspace/sidebar/project-nav-items.js +24 -5
  98. package/dist/workspace/sidebar/project-spaces-nav.js +3 -10
  99. package/dist/workspace/sidebar/sidebar-more-group.js +1 -1
  100. package/package.json +3 -3
@@ -0,0 +1,27 @@
1
+ /**
2
+ * The Review page's card deck: the Needs you items, one card at a time.
3
+ *
4
+ * Drag a card right for its yes (Merge, Approve), left for its no (Close,
5
+ * Deny, Dismiss), or use the buttons under the stack. Skip moves the card to
6
+ * the back. A click on the card opens the item's detail. A decision has no
7
+ * swipe: it needs a chosen option, so its card offers Open only.
8
+ *
9
+ * Keyboard, while focus is in the deck: → yes, ← no, S skip, Enter open.
10
+ * A verdict waits `UNDO_MS` behind an Undo toast before `onDecide` sends it.
11
+ * Unmounting the deck sends what waits.
12
+ */
13
+ import type { ReviewVerdict } from '@kortix/sdk';
14
+ import type { ReviewItem } from './types.js';
15
+ export interface ReviewSwipeDeckProps {
16
+ /** The Needs you items, in list order. */
17
+ items: ReviewItem[];
18
+ /** Whether this viewer may give `verdict` on `item` (KRTX-1720). */
19
+ allows: (item: ReviewItem, verdict: ReviewVerdict) => boolean;
20
+ /** Sends a verdict. Runs after the Undo window. `feedback`: what should change. */
21
+ onDecide: (item: ReviewItem, verdict: ReviewVerdict, feedback?: string) => void;
22
+ /** Opens one item's detail. */
23
+ onOpen: (item: ReviewItem) => void;
24
+ /** True while an item's detail covers the deck: its keys are off. */
25
+ paused?: boolean;
26
+ }
27
+ export declare function ReviewSwipeDeck({ items, allows, onDecide, onOpen, paused }: ReviewSwipeDeckProps): import("react").JSX.Element;
@@ -0,0 +1,304 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { ArrowBendUpLeftIcon, ArrowCounterClockwiseIcon, ArrowsOutSimpleIcon, CheckIcon, WarningIcon, XIcon, } from '@phosphor-icons/react';
4
+ import { useCallback, useEffect, useMemo, useRef, useState, } from 'react';
5
+ import { useTranslations } from '../../i18n/index.js';
6
+ import { cn } from '../../internal/lib/utils.js';
7
+ import { approvalIdentity } from '../../markdown/setup-links/approval-decision.js';
8
+ import { ConnectorAppMark } from '../../markdown/setup-links/connector-handshake.js';
9
+ import { Button } from '../../primitives/button.js';
10
+ import { EmptyState } from '../../primitives/empty-state.js';
11
+ import { undoToast } from '../../primitives/toast.js';
12
+ import { reviewApprovalDetails } from './approval-modal.js';
13
+ import { OutputBody } from './review-detail.js';
14
+ import { formatItemAge } from './review-actions.js';
15
+ import { ROW_TILE, reviewKindLabel } from './review-meta.js';
16
+ import { reviewSwipeVerdicts } from './review-swipe.js';
17
+ /** How long a verdict waits for Undo before it is sent. */
18
+ const UNDO_MS = 5_000;
19
+ /** How far a card moves before a release decides it. */
20
+ const SWIPE_PX = 110;
21
+ /** A pointer that moves less than this is a click, not a drag. */
22
+ const CLICK_SLOP_PX = 6;
23
+ /** The fly-off after a decision. */
24
+ const EXIT_MS = 220;
25
+ /** The cards drawn under the top one. */
26
+ const STACK_DEPTH = 2;
27
+ const EASE_OUT = 'cubic-bezier(0.23, 1, 0.32, 1)';
28
+ export function ReviewSwipeDeck({ items, allows, onDecide, onOpen, paused }) {
29
+ const t = useTranslations('hardcodedUi.reviewDeck');
30
+ const [skipped, setSkipped] = useState([]);
31
+ const [staged, setStaged] = useState(() => new Map());
32
+ const [leaving, setLeaving] = useState(null);
33
+ // The card whose "what should change?" box is open (a left swipe on a
34
+ // change or an output), and its text.
35
+ const [asking, setAsking] = useState(null);
36
+ const [note, setNote] = useState('');
37
+ const rootRef = useRef(null);
38
+ const stagedRef = useRef(staged);
39
+ stagedRef.current = staged;
40
+ const onDecideRef = useRef(onDecide);
41
+ onDecideRef.current = onDecide;
42
+ // A verdict accepted while its card still flies off: registered at once,
43
+ // so leaving the page mid-animation still sends it.
44
+ const flyingRef = useRef(null);
45
+ // The deck takes focus when it shows, so its keys work at once.
46
+ useEffect(() => {
47
+ if (!paused)
48
+ rootRef.current?.focus({ preventScroll: true });
49
+ }, [paused]);
50
+ // Leaving the page sends what waits: Undo is a short grace, not a draft.
51
+ useEffect(() => () => {
52
+ const flying = flyingRef.current;
53
+ if (flying) {
54
+ clearTimeout(flying.timer);
55
+ onDecideRef.current(flying.item, flying.verdict, flying.feedback);
56
+ }
57
+ for (const entry of stagedRef.current.values()) {
58
+ clearTimeout(entry.timer);
59
+ onDecideRef.current(entry.item, entry.verdict, entry.feedback);
60
+ }
61
+ }, []);
62
+ // Skipped cards go to the back, in the order they were skipped.
63
+ const deck = useMemo(() => {
64
+ const open = items.filter((item) => !staged.has(item.id));
65
+ const rank = (id) => skipped.indexOf(id);
66
+ return [...open].sort((a, b) => rank(a.id) - rank(b.id));
67
+ }, [items, staged, skipped]);
68
+ const top = deck[0] ?? null;
69
+ const swipe = top ? reviewSwipeVerdicts(top.kind) : null;
70
+ const yes = top && swipe?.right && allows(top, swipe.right) ? swipe.right : null;
71
+ const no = top && swipe?.left && allows(top, swipe.left) ? swipe.left : null;
72
+ const verdictLabel = useCallback((item, verdict) => {
73
+ if (verdict === 'changes')
74
+ return t('sendBack');
75
+ if (item.kind === 'change')
76
+ return verdict === 'approve' ? t('merge') : t('close');
77
+ if (item.kind === 'approval')
78
+ return verdict === 'approve' ? t('approve') : t('deny');
79
+ return verdict === 'approve' ? t('approve') : t('dismiss');
80
+ }, [t]);
81
+ const stage = useCallback((item, verdict, feedback) => {
82
+ const timer = setTimeout(() => {
83
+ setStaged((prev) => {
84
+ const next = new Map(prev);
85
+ next.delete(item.id);
86
+ return next;
87
+ });
88
+ onDecideRef.current(item, verdict, feedback);
89
+ }, UNDO_MS);
90
+ setStaged((prev) => new Map(prev).set(item.id, { item, verdict, feedback, timer }));
91
+ undoToast(t('staged', { verdict: verdictLabel(item, verdict), title: item.title }), {
92
+ duration: UNDO_MS,
93
+ undoLabel: t('undo'),
94
+ onUndo: () => {
95
+ const entry = stagedRef.current.get(item.id);
96
+ if (!entry)
97
+ return;
98
+ clearTimeout(entry.timer);
99
+ setStaged((prev) => {
100
+ const next = new Map(prev);
101
+ next.delete(item.id);
102
+ return next;
103
+ });
104
+ // The card comes back on top.
105
+ setSkipped((prev) => prev.filter((id) => id !== item.id));
106
+ },
107
+ });
108
+ }, [t, verdictLabel]);
109
+ /** The card flies off; its verdict is registered now and staged once it is gone. */
110
+ const fly = useCallback((item, dir, verdict, feedback) => {
111
+ setLeaving({ id: item.id, dir });
112
+ const timer = setTimeout(() => {
113
+ flyingRef.current = null;
114
+ setLeaving(null);
115
+ stage(item, verdict, feedback);
116
+ }, EXIT_MS);
117
+ flyingRef.current = { item, verdict, feedback, timer };
118
+ }, [stage]);
119
+ const decide = useCallback((dir) => {
120
+ if (!top || leaving)
121
+ return;
122
+ const verdict = dir === 'right' ? yes : no;
123
+ if (!verdict)
124
+ return;
125
+ // Sending back needs the words: the card stays and asks what should change.
126
+ if (verdict === 'changes') {
127
+ setAsking(top.id);
128
+ return;
129
+ }
130
+ fly(top, dir, verdict);
131
+ }, [top, leaving, yes, no, fly]);
132
+ // A note belongs to its card: a new top card starts with an empty box.
133
+ const topId = top?.id;
134
+ useEffect(() => {
135
+ setAsking(null);
136
+ setNote('');
137
+ }, [topId]);
138
+ const sendBack = useCallback(() => {
139
+ const text = note.trim();
140
+ if (!top || !text)
141
+ return;
142
+ setAsking(null);
143
+ setNote('');
144
+ fly(top, 'left', 'changes', text);
145
+ }, [top, note, fly]);
146
+ const skip = useCallback(() => {
147
+ if (!top || deck.length < 2)
148
+ return;
149
+ setSkipped((prev) => [...prev.filter((id) => id !== top.id), top.id]);
150
+ }, [top, deck.length]);
151
+ const onKeyDown = (event) => {
152
+ if (paused || !top || event.metaKey || event.ctrlKey || event.altKey)
153
+ return;
154
+ // The "what should change?" box owns its keys.
155
+ if (asking === top.id)
156
+ return;
157
+ const key = event.key.toLowerCase();
158
+ if (key === 'arrowright')
159
+ decide('right');
160
+ else if (key === 'arrowleft')
161
+ decide('left');
162
+ else if (key === 's')
163
+ skip();
164
+ // Enter on a focused control (Merge, Close) is that control's click.
165
+ else if (key === 'enter' && event.target === event.currentTarget)
166
+ onOpen(top);
167
+ else
168
+ return;
169
+ event.preventDefault();
170
+ event.stopPropagation();
171
+ };
172
+ if (!top) {
173
+ return (_jsx("div", { className: "flex flex-1 items-center justify-center p-6", children: _jsx(EmptyState, { title: t('emptyTitle'), description: t('emptyDescription') }) }));
174
+ }
175
+ const below = deck.slice(1, 1 + STACK_DEPTH);
176
+ // Why a verdict control is off: a decision is answered from its options;
177
+ // anything else, this viewer may not give that verdict.
178
+ const offReason = top.kind === 'decision' ? t('needsChoice') : t('noVerdict');
179
+ return (_jsx("div", { ref: rootRef,
180
+ // The deck takes focus on mount so its keys work at once.
181
+ tabIndex: -1, onKeyDown: onKeyDown, "aria-label": t('label'), role: "region",
182
+ // The card fills the inbox's height, as a dating app's card fills the
183
+ // screen; the whole review scrolls inside it.
184
+ className: "mx-auto flex min-h-96 w-full max-w-xl flex-1 flex-col px-3 pt-2 pb-3 outline-none", children: _jsxs("div", { className: "relative min-h-0 flex-1", children: [below
185
+ .map((item, index) => (_jsx("div", { "aria-hidden": true, className: "bg-card border-border absolute inset-0 rounded-2xl border", style: {
186
+ transform: `translateY(${(index + 1) * 8}px) scale(${1 - (index + 1) * 0.03})`,
187
+ opacity: 1 - (index + 1) * 0.35,
188
+ transition: `transform 220ms ${EASE_OUT}, opacity 220ms ${EASE_OUT}`,
189
+ } }, item.id)))
190
+ .reverse(), _jsx(SwipeCard, { item: top, leaving: leaving?.id === top.id ? leaving.dir : null, canRight: !!yes, canLeft: !!no, leftTone: no === 'changes' ? 'orange' : 'red', onSwipe: decide, onOpen: () => onOpen(top) }, top.id), asking === top.id ? (_jsx(SendBackBox, { value: note, onChange: setNote, onCancel: () => {
191
+ setAsking(null);
192
+ setNote('');
193
+ }, onSend: sendBack })) : (
194
+ /* The actions float over the card's bottom edge, no captions: each
195
+ names itself to a screen reader and in its tooltip. */
196
+ _jsxs("div", { className: "pointer-events-none absolute inset-x-0 bottom-4 flex items-center justify-center gap-4", children: [_jsx(DeckButton, { label: t('skip'), kbd: "S", size: "sm", disabled: deck.length < 2, onClick: skip, children: _jsx(ArrowCounterClockwiseIcon, { className: "size-4" }) }), _jsx(DeckButton, { label: no ? verdictLabel(top, no) : offReason, kbd: "ArrowLeft", disabled: !no, onClick: () => decide('left'), children: no === 'changes' ? (_jsx(ArrowBendUpLeftIcon, { weight: "bold", className: "text-kortix-orange size-6" })) : (_jsx(XIcon, { weight: "bold", className: "text-kortix-red size-6" })) }), _jsx(DeckButton, { label: yes ? verdictLabel(top, yes) : offReason, kbd: "ArrowRight", disabled: !yes, onClick: () => decide('right'), children: _jsx(CheckIcon, { weight: "bold", className: "text-kortix-green size-6" }) }), _jsx(DeckButton, { label: t('open'), kbd: "Enter", size: "sm", onClick: () => onOpen(top), children: _jsx(ArrowsOutSimpleIcon, { className: "size-4" }) })] }))] }) }));
197
+ }
198
+ /** "What should change?": the note a left swipe sends back to the agent. */
199
+ function SendBackBox({ value, onChange, onCancel, onSend, }) {
200
+ const t = useTranslations('hardcodedUi.reviewDeck');
201
+ return (_jsxs("div", { className: "bg-background border-border absolute inset-x-3 bottom-3 z-10 flex flex-col gap-2 rounded-xl border p-3 shadow-lg", children: [_jsx("textarea", { autoFocus: true, rows: 3, value: value, "aria-label": t('whatShouldChange'), placeholder: t('whatShouldChange'), onChange: (event) => onChange(event.target.value), onKeyDown: (event) => {
202
+ if (event.key === 'Escape')
203
+ onCancel();
204
+ else if (event.key === 'Enter' && (event.metaKey || event.ctrlKey))
205
+ onSend();
206
+ }, className: "text-foreground placeholder:text-muted-foreground min-h-16 w-full resize-none bg-transparent text-sm outline-none" }), _jsxs("div", { className: "flex items-center justify-end gap-2", children: [_jsx(Button, { type: "button", variant: "ghost", size: "sm", onClick: onCancel, children: t('cancel') }), _jsx(Button, { type: "button", size: "sm", disabled: !value.trim(), onClick: onSend, children: t('sendToAgent') })] })] }));
207
+ }
208
+ /** One round control over the card. Its name is its tooltip and accessible name. */
209
+ function DeckButton({ label, kbd, size = 'lg', disabled, onClick, children, }) {
210
+ return (_jsx(Button, { type: "button", variant: "outline", "aria-label": label, "aria-keyshortcuts": kbd, title: label, disabled: disabled, onClick: onClick, className: cn('bg-background pointer-events-auto rounded-full p-0 shadow-md transition-transform duration-150 ease-out active:scale-95', size === 'lg' ? 'size-14' : 'size-11'), children: children }));
211
+ }
212
+ function SwipeCard({ item, leaving, canRight, canLeft, leftTone, onSwipe, onOpen, }) {
213
+ const [drag, setDrag] = useState(0);
214
+ const [dragging, setDragging] = useState(false);
215
+ const start = useRef(null);
216
+ // A side with no verdict resists: the card moves a third as far.
217
+ const resisted = (dx) => ((dx > 0 && !canRight) || (dx < 0 && !canLeft) ? dx / 3 : dx);
218
+ const onPointerDown = (event) => {
219
+ if (event.button !== 0 || leaving)
220
+ return;
221
+ // A control inside the card (a video's play, a file row) keeps its click.
222
+ if (event.target.closest('video, audio, button, a, input, textarea, [role="button"]'))
223
+ return;
224
+ start.current = { x: event.clientX, moved: false };
225
+ event.currentTarget.setPointerCapture(event.pointerId);
226
+ };
227
+ const onPointerMove = (event) => {
228
+ const s = start.current;
229
+ if (!s)
230
+ return;
231
+ const dx = event.clientX - s.x;
232
+ if (!s.moved && Math.abs(dx) < CLICK_SLOP_PX)
233
+ return;
234
+ s.moved = true;
235
+ setDragging(true);
236
+ setDrag(resisted(dx));
237
+ };
238
+ const onPointerUp = () => {
239
+ const s = start.current;
240
+ start.current = null;
241
+ setDragging(false);
242
+ if (!s)
243
+ return;
244
+ if (!s.moved) {
245
+ onOpen();
246
+ return;
247
+ }
248
+ if (drag > SWIPE_PX && canRight)
249
+ onSwipe('right');
250
+ else if (drag < -SWIPE_PX && canLeft)
251
+ onSwipe('left');
252
+ setDrag(0);
253
+ };
254
+ const x = leaving ? (leaving === 'right' ? 1 : -1) * 640 : drag;
255
+ const progress = Math.min(1, Math.abs(drag) / SWIPE_PX);
256
+ const transform = `translateX(${x}px) rotate(${x / 30}deg)`;
257
+ return (_jsxs("article", { "data-testid": "review-swipe-card", "aria-label": item.title, className: cn('bg-card border-border absolute inset-0 flex cursor-grab touch-pan-y flex-col overflow-hidden rounded-2xl border shadow-sm select-none', dragging && 'cursor-grabbing'), style: {
258
+ transform,
259
+ opacity: leaving ? 0 : 1,
260
+ // No transition while the pointer drives the card: it follows the finger.
261
+ transition: dragging ? 'none' : `transform ${EXIT_MS}ms ${EASE_OUT}, opacity ${EXIT_MS}ms ${EASE_OUT}`,
262
+ }, onPointerDown: onPointerDown, onPointerMove: onPointerMove, onPointerUp: onPointerUp, onPointerCancel: () => {
263
+ start.current = null;
264
+ setDragging(false);
265
+ setDrag(0);
266
+ }, children: [_jsx("div", { className: "min-h-0 flex-1 overflow-y-auto pb-24", children: _jsx(CardBody, { item: item }) }), _jsx("div", { "aria-hidden": true, className: "from-card pointer-events-none absolute inset-x-0 bottom-0 h-28 bg-gradient-to-t to-transparent" }), _jsx("div", { "aria-hidden": true, className: "bg-kortix-green/15 pointer-events-none absolute inset-0", style: { opacity: drag > 0 && canRight ? progress : 0 } }), _jsx("div", { "aria-hidden": true, className: cn('pointer-events-none absolute inset-0', leftTone === 'orange' ? 'bg-kortix-orange/15' : 'bg-kortix-red/15'), style: { opacity: drag < 0 && canLeft ? progress : 0 } })] }));
267
+ }
268
+ function CardBody({ item }) {
269
+ const tI18nComplete = useTranslations('hardcodedUi.i18nComplete');
270
+ const t = useTranslations('hardcodedUi.reviewDeck');
271
+ const [age, setAge] = useState('');
272
+ // Relative time is client-only: it differs between server and hydration.
273
+ useEffect(() => setAge(formatItemAge(item.createdAt)), [item.createdAt]);
274
+ const connector = item.kind === 'approval' ? reviewApprovalDetails(item) : null;
275
+ const who = connector ? approvalIdentity(connector) : null;
276
+ const tile = ROW_TILE[item.kind];
277
+ return (_jsxs("div", { className: "flex flex-col gap-5 p-6", children: [_jsxs("div", { className: "flex items-center gap-2.5", children: [who ? (_jsx(ConnectorAppMark, { name: who.connector ?? item.title, slug: who.slug, iconUrl: who.iconUrl, size: "md" })) : (_jsx("span", { className: cn('flex size-8 shrink-0 items-center justify-center rounded-md', tile.tint), children: _jsx(tile.icon, { className: "size-4" }) })), _jsxs("div", { className: "text-muted-foreground min-w-0 flex-1 truncate text-xs", children: [reviewKindLabel(item.kind, tI18nComplete), item.kind === 'change' && item.detail.number != null ? ` #${item.detail.number}` : '', ' · ', item.agent, age ? ` · ${age}` : ''] }), item.risk === 'high' ? (_jsx(WarningIcon, { weight: "fill", "aria-label": t('highRisk'), className: "text-kortix-orange size-4 shrink-0" })) : null] }), _jsxs("div", { className: "flex flex-col gap-1.5", children: [_jsx("h3", { className: "text-foreground text-2xl leading-tight font-medium tracking-tight text-pretty", children: item.title }), item.summary ? (_jsx("p", { className: "text-muted-foreground text-base text-pretty", children: item.summary })) : null] }), _jsx(KindDetail, { item: item })] }));
278
+ }
279
+ /** What each kind adds under the title: the facts a verdict rests on. */
280
+ function KindDetail({ item }) {
281
+ const t = useTranslations('hardcodedUi.reviewDeck');
282
+ if (item.kind === 'change') {
283
+ const { additions, deletions, files } = item.detail.advanced;
284
+ const conflicts = item.detail.conflicts?.length ?? 0;
285
+ return (_jsxs("div", { className: "flex flex-col gap-3", children: [item.detail.whatChanged.length > 0 ? (_jsx("ul", { className: "text-foreground flex flex-col gap-1 text-sm", children: item.detail.whatChanged.slice(0, 3).map((line) => (_jsxs("li", { className: "flex gap-2", children: [_jsx("span", { "aria-hidden": true, className: "text-muted-foreground", children: "\u00B7" }), _jsx("span", { children: line })] }, line))) })) : null, files.length > 0 || additions > 0 || deletions > 0 || conflicts > 0 ? (_jsxs("div", { className: "border-border flex items-center gap-3 border-t pt-3 text-xs tabular-nums", children: [_jsx("span", { className: "text-muted-foreground", children: t('files', { count: files.length }) }), _jsxs("span", { className: "text-kortix-green", children: ["+", additions] }), _jsxs("span", { className: "text-kortix-red", children: ["\u2212", deletions] }), conflicts > 0 ? (_jsxs("span", { className: "text-muted-foreground ml-auto flex items-center gap-1", children: [_jsx(WarningIcon, { weight: "fill", className: "text-kortix-orange size-3.5" }), t('conflicts', { count: conflicts })] })) : null] })) : null] }));
286
+ }
287
+ if (item.kind === 'approval') {
288
+ const call = item.detail.actions[0];
289
+ if (!call)
290
+ return null;
291
+ const args = call.argsPreview.slice(0, 4);
292
+ return (_jsxs("div", { className: "flex flex-col gap-3", children: [call.consequence ? _jsx("p", { className: "text-foreground text-sm", children: call.consequence }) : null, args.length > 0 ? (_jsx("dl", { className: "bg-muted/50 grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 rounded-lg p-3 font-mono text-xs", children: args.map((arg) => (_jsxs("div", { className: "contents", children: [_jsx("dt", { className: "text-muted-foreground", children: arg.key }), _jsx("dd", { className: "text-foreground truncate", children: arg.value })] }, arg.key))) })) : null] }));
293
+ }
294
+ if (item.kind === 'output') {
295
+ // What the agent made, drawn as in the detail: the video, image or text
296
+ // is the card's face. The note often repeats the summary: say it once.
297
+ const shown = item.detail.note === item.summary ? { ...item, detail: { ...item.detail, note: '' } } : item;
298
+ return (_jsx("div", { className: "flex flex-col gap-4", children: _jsx(OutputBody, { item: shown }) }));
299
+ }
300
+ if (item.kind === 'decision') {
301
+ return (_jsxs("div", { className: "flex flex-col gap-2", children: [_jsx("p", { className: "text-foreground text-sm font-medium", children: item.detail.question }), _jsx("ul", { className: "flex flex-col gap-1", children: item.detail.options.slice(0, 4).map((option) => (_jsx("li", { className: "border-border text-foreground truncate rounded-md border px-2.5 py-1.5 text-sm", children: option.label }, option.id))) })] }));
302
+ }
303
+ return item.detail.note && item.detail.note !== item.summary ? (_jsxs("p", { className: "text-foreground text-sm", children: [item.detail.note, _jsxs("span", { className: "text-muted-foreground", children: [" \u00B7 ", t('items', { count: item.detail.children.length })] })] })) : null;
304
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Which verdict each swipe gives on a review item, in the card deck of the
3
+ * Review page. Right is the item's yes, left its no. A decision needs a
4
+ * chosen option, so it takes no swipe: its card opens the detail.
5
+ *
6
+ * - change, output: right approves (a change merges), left sends it back:
7
+ * the person writes what should change and the agent gets it (`changes`).
8
+ * Closing a change stays in its detail.
9
+ * - approval: right approves, left denies.
10
+ * - batch: right approves, left dismisses.
11
+ */
12
+ import type { ReviewItemKind, ReviewVerdict } from '@kortix/sdk';
13
+ export interface ReviewSwipeVerdicts {
14
+ right: ReviewVerdict | null;
15
+ left: ReviewVerdict | null;
16
+ }
17
+ export declare function reviewSwipeVerdicts(kind: ReviewItemKind): ReviewSwipeVerdicts;
@@ -0,0 +1,10 @@
1
+ const SWIPE_VERDICTS = {
2
+ change: { right: 'approve', left: 'changes' },
3
+ approval: { right: 'approve', left: 'reject' },
4
+ output: { right: 'approve', left: 'changes' },
5
+ batch: { right: 'approve', left: 'dismiss' },
6
+ decision: { right: null, left: null },
7
+ };
8
+ export function reviewSwipeVerdicts(kind) {
9
+ return SWIPE_VERDICTS[kind];
10
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The Review row: this workspace's Review page (`reviewHref`,
3
+ * `/workspaces/<id>/review`: change requests, agent questions, approvals)
4
+ * with the count of what waits on the person (`useReviewNeedsYouCount`).
5
+ * One row for both sidebars: the default nav rows (`ProjectNavItems`, first
6
+ * row) and the Spaces list (`ProjectSpacesNav`, `chat` on). Nothing when the
7
+ * host serves no Review page.
8
+ */
9
+ export declare function ProjectReviewNavItem({ projectId, itemClassName, }: {
10
+ projectId: string;
11
+ /** Added to the list item's classes (the Spaces list sets Review apart with spacing). */
12
+ itemClassName?: string;
13
+ }): import("react").JSX.Element | null;
@@ -0,0 +1,29 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { CheckIcon } from '@phosphor-icons/react';
4
+ import { useTranslations } from '../../../i18n/index.js';
5
+ import { useReviewNeedsYouCount } from '../../../internal/hooks/use-review-session-summary.js';
6
+ import { ProjectNavRow } from '../../../internal/layout/project-nav-row.js';
7
+ import { reviewHref } from '../../../internal/lib/capability-tab-routes.js';
8
+ import { CountBadge } from '../../../primitives/count-badge.js';
9
+ import { useUiPathname } from '../../../providers/ui-provider.js';
10
+ /**
11
+ * The Review row: this workspace's Review page (`reviewHref`,
12
+ * `/workspaces/<id>/review`: change requests, agent questions, approvals)
13
+ * with the count of what waits on the person (`useReviewNeedsYouCount`).
14
+ * One row for both sidebars: the default nav rows (`ProjectNavItems`, first
15
+ * row) and the Spaces list (`ProjectSpacesNav`, `chat` on). Nothing when the
16
+ * host serves no Review page.
17
+ */
18
+ export function ProjectReviewNavItem({ projectId, itemClassName, }) {
19
+ const t = useTranslations('sidebar');
20
+ const pathname = useUiPathname();
21
+ const href = reviewHref(projectId);
22
+ const needsYou = useReviewNeedsYouCount(projectId);
23
+ if (!href)
24
+ return null;
25
+ // The page or an item under it; a query (`?id=`) is not part of the match.
26
+ const path = href.split('?')[0];
27
+ const active = !!pathname && (pathname === path || pathname.startsWith(`${path}/`));
28
+ return (_jsxs(ProjectNavRow, { active: active, label: t('spaces.review'), href: href, itemClassName: itemClassName, children: [_jsx(CheckIcon, {}), _jsx("span", { className: "min-w-0 flex-1 truncate", children: t('spaces.review') }), needsYou > 0 ? _jsx(CountBadge, { count: needsYou, tone: "waiting" }) : null] }));
29
+ }
@@ -1,3 +1,5 @@
1
- export declare function ProjectNavItems({ projectId }: {
1
+ /** `review={false}`: the host shows the Review row elsewhere (`chat` on: first in `ProjectSpacesNav`). */
2
+ export declare function ProjectNavItems({ projectId, review }: {
2
3
  projectId: string;
4
+ review?: boolean;
3
5
  }): import("react").JSX.Element;
@@ -5,6 +5,7 @@ import { ProjectCalendarNavItem } from './footer/project-calendar-nav.js';
5
5
  import { ProjectGoalsNavItem } from './footer/project-goals-nav.js';
6
6
  import { ProjectArtifactsNavItem } from './footer/project-artifacts-nav.js';
7
7
  import { ProjectFilesNavItem } from './footer/project-files-nav.js';
8
+ import { ProjectReviewNavItem } from './footer/project-review-nav.js';
8
9
  import { CustomizeGlyph, useCapabilityAccess, } from '../../internal/layout/project-settings-nav.js';
9
10
  import { isProjectAdminPath, useOpenNewAgent } from '../../internal/layout/project-capability-nav.js';
10
11
  import { PROJECT_ACTIONS } from '../../internal/lib/project-actions.js';
@@ -22,18 +23,34 @@ import { adminPath } from '../../lib/routes.js';
22
23
  * own flag and permission gate and renders nothing when the project does not
23
24
  * offer it. Spaces are the channel sidebar under the `chat` flag
24
25
  * (project-spaces-nav.tsx).
26
+ *
27
+ * `review` is first: it is the one row that counts what waits on you (change
28
+ * requests, agent questions, approvals), as Review is first in the Spaces
29
+ * list and a top row of the mobile drawer.
25
30
  */
26
- const NAV_ROWS = ['customize', 'files', 'apps', 'calendar', 'goals', 'artifacts'];
27
- export function ProjectNavItems({ projectId }) {
28
- return (_jsx(_Fragment, { children: NAV_ROWS.map((id) => (_jsx(NavItem, { id: id, projectId: projectId }, id))) }));
31
+ const NAV_ROWS = ['review', 'customize', 'files', 'apps', 'calendar', 'goals', 'artifacts'];
32
+ /** `review={false}`: the host shows the Review row elsewhere (`chat` on: first in `ProjectSpacesNav`). */
33
+ export function ProjectNavItems({ projectId, review = true }) {
34
+ return (_jsx(_Fragment, { children: NAV_ROWS.filter((id) => review || id !== 'review').map((id) => (_jsx(NavItem, { id: id, projectId: projectId }, id))) }));
35
+ }
36
+ /**
37
+ * Review, for the people who decide: the caller may read Review and act on
38
+ * it (approve a change request, answer an agent). The Customize access rule's
39
+ * `review` tab, the rule the mobile drawer's Review row applies too.
40
+ */
41
+ function ReviewNavEntry({ projectId }) {
42
+ const access = useCapabilityAccess(projectId);
43
+ if (!access.settled || !access.tabs.includes('review'))
44
+ return null;
45
+ return _jsx(ProjectReviewNavItem, { projectId: projectId });
29
46
  }
30
47
  /**
31
48
  * Customize, for the people who may configure the project: one link into
32
49
  * Workspace settings, on Agents when the caller may read them (Customize is
33
50
  * agent-centric). Since 2026-11-08 Customize IS that panel, so there is no
34
51
  * disclosure here: the panel's rail lists Agents, Models, Skills and the
35
- * rest, and Review is part of the Inbox. On hover, the row's right edge
36
- * holds + (New agent). Absent when the caller may open no capability page.
52
+ * rest. Review is its own row (`ReviewNavEntry`). On hover, the row's right
53
+ * edge holds + (New agent). Absent when the caller may open no capability page.
37
54
  */
38
55
  function CustomizeNavEntry({ projectId }) {
39
56
  const t = useTranslations('sidebar');
@@ -58,6 +75,8 @@ function CustomizeNavEntry({ projectId }) {
58
75
  }
59
76
  function NavItem({ id, projectId }) {
60
77
  switch (id) {
78
+ case 'review':
79
+ return _jsx(ReviewNavEntry, { projectId: projectId });
61
80
  case 'customize':
62
81
  return _jsx(CustomizeNavEntry, { projectId: projectId });
63
82
  case 'apps':
@@ -1,20 +1,18 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useProjectSessions, useProjectSpaces } from '@kortix/sdk/react';
4
- import { useReviewNeedsYouCount } from '../../internal/hooks/use-review-session-summary.js';
5
4
  import { MY_KORTIX_AGENT_NAME } from '../../_vendor/kortix-shared.js';
6
- import { CheckIcon, LockSimpleIcon, PlusIcon } from '@phosphor-icons/react';
5
+ import { LockSimpleIcon, PlusIcon } from '@phosphor-icons/react';
7
6
  import { useMemo, useState } from 'react';
8
7
  import { useTranslations } from '../../i18n/index.js';
9
8
  import { HoverPrefetchLink } from '../../internal/components/hover-prefetch-link.js';
10
9
  import { useIsMobile } from '../../internal/hooks/index.js';
11
- import { reviewHref } from '../../internal/lib/capability-tab-routes.js';
12
10
  import { uiRoutes } from '../../lib/routes.js';
13
11
  import { Button } from '../../primitives/button.js';
14
- import { CountBadge } from '../../primitives/count-badge.js';
15
12
  import { FadedScrollArea } from '../../primitives/faded-scroll-area.js';
16
13
  import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar } from '../../primitives/sidebar.js';
17
14
  import { useUiPathname } from '../../providers/ui-provider.js';
15
+ import { ProjectReviewNavItem } from './footer/project-review-nav.js';
18
16
  import { CreateChannelDialog } from '../spaces/create-channel-dialog.js';
19
17
  import { PrivateChannelsNotInRow } from '../spaces/private-channels-not-in.js';
20
18
  import { isPersonalSpace, isPrivateSpace, orderSpaces, spaceDisplayName, spacePreview, } from '../spaces/space-identity.js';
@@ -56,13 +54,8 @@ export function ProjectSpacesNav({ projectId }) {
56
54
  const [createOpen, setCreateOpen] = useState(false);
57
55
  const { personal, others } = useMemo(() => orderSpaces(spaces.data ?? []), [spaces.data]);
58
56
  const chatHref = `${uiRoutes().project(projectId)}/chat`;
59
- // The Review page on its own route (`reviewHref`), beside this sidebar.
60
- const review = reviewHref(projectId);
61
- const openAsks = useReviewNeedsYouCount(projectId);
62
57
  const hrefOf = (space) => space.kind === 'dm' ? uiRoutes().dm(projectId, space.dm_agent_name ?? '') : uiRoutes().channel(projectId, space.slug ?? '');
63
- return (_jsxs(FadedScrollArea, { fadeColor: "from-background", className: "h-full min-h-0", children: [_jsxs(SidebarMenu, { className: "gap-px", onKeyDown: moveFocus, children: [review ? (
64
- // Spacing, not a rule, sets Review apart from the spaces.
65
- _jsx(SidebarMenuItem, { className: "mb-2", children: _jsx(SidebarMenuButton, { asChild: true, isActive: isAt(pathname, review), className: "text-sidebar-foreground", children: _jsxs(HoverPrefetchLink, { href: review, children: [_jsx(CheckIcon, {}), _jsx("span", { className: "min-w-0 flex-1 truncate", children: t('spaces.review') }), openAsks > 0 ? _jsx(CountBadge, { count: openAsks, tone: "waiting" }) : null] }) }) })) : null, _jsx(SpaceRow, { projectId: projectId, space: personal, href: chatHref, active: isAt(pathname, chatHref) || isAt(pathname, uiRoutes().dm(projectId, MY_KORTIX_AGENT_NAME)), name: personalName, personal: true, isPrivate: true, names: names }), spaces.isError && !spaces.data ? (_jsxs("li", { className: "space-y-1.5 px-2 py-2", children: [_jsx("p", { className: "text-destructive/80 text-xs", children: t('spaces.loadError') }), _jsx(Button, { variant: "outline", size: "xs", onClick: () => spaces.refetch(), children: t('retry') })] })) : null, others.map((space) => {
58
+ return (_jsxs(FadedScrollArea, { fadeColor: "from-background", className: "h-full min-h-0", children: [_jsxs(SidebarMenu, { className: "gap-px", onKeyDown: moveFocus, children: [_jsx(ProjectReviewNavItem, { projectId: projectId, itemClassName: "mb-2" }), _jsx(SpaceRow, { projectId: projectId, space: personal, href: chatHref, active: isAt(pathname, chatHref) || isAt(pathname, uiRoutes().dm(projectId, MY_KORTIX_AGENT_NAME)), name: personalName, personal: true, isPrivate: true, names: names }), spaces.isError && !spaces.data ? (_jsxs("li", { className: "space-y-1.5 px-2 py-2", children: [_jsx("p", { className: "text-destructive/80 text-xs", children: t('spaces.loadError') }), _jsx(Button, { variant: "outline", size: "xs", onClick: () => spaces.refetch(), children: t('retry') })] })) : null, others.map((space) => {
66
59
  const href = hrefOf(space);
67
60
  return (_jsx(SpaceRow, { projectId: projectId, space: space, href: href, active: isAt(pathname, href), name: spaceDisplayName(space, personalName), personal: isPersonalSpace(space), isPrivate: isPrivateSpace(space), names: names }, space.space_id));
68
61
  }), spaces.data ? (_jsx(SidebarMenuItem, { children: _jsxs(SidebarMenuButton, { onClick: () => setCreateOpen(true), className: "text-muted-foreground hover:text-sidebar-foreground", children: [_jsx(PlusIcon, {}), _jsx("span", { children: t('spaces.addChannel') })] }) })) : null, _jsx(PrivateChannelsNotInRow, { projectId: projectId })] }), _jsx(CreateChannelDialog, { projectId: projectId, open: createOpen, onOpenChange: setCreateOpen })] }));
@@ -24,5 +24,5 @@ export function SidebarMoreGroup({ projectId, footer }) {
24
24
  const expanded = useSessionExpandedStore(selectExpandedIds(projectId));
25
25
  const toggleExpanded = useSessionExpandedStore((state) => state.toggleExpanded);
26
26
  const open = expanded.includes(MORE_SECTION_ID);
27
- return (_jsxs(Disclosure, { open: open, onOpenChange: () => toggleExpanded(projectId, MORE_SECTION_ID), className: cn('group/more flex min-h-0 flex-col', open ? 'max-h-1/2' : 'shrink-0'), transition: { duration: 0.15, ease: 'easeOut' }, children: [_jsx(SidebarMenu, { children: _jsx(SidebarMenuItem, { children: _jsx(DisclosureTrigger, { children: _jsxs(SidebarMenuButton, { className: "text-muted-foreground hover:text-sidebar-foreground", children: [_jsx(DotsThreeIcon, { weight: "bold" }), _jsx("span", { className: "min-w-0 flex-1 truncate", children: t('more') }), _jsx(CaretRightSolidIcon, { "aria-hidden": true, className: cn('size-4! shrink-0 transition-transform duration-(--duration-fast) ease-out motion-reduce:transition-none', open && 'rotate-90') })] }) }) }) }), _jsxs(DisclosureContent, { className: "flex min-h-0 flex-1 flex-col", contentClassName: "flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto pt-1", children: [_jsx(SidebarMenu, { children: _jsx(ProjectNavItems, { projectId: projectId }) }), _jsx(ProjectSessionList, { projectId: projectId, secondary: true }), footer] })] }));
27
+ return (_jsxs(Disclosure, { open: open, onOpenChange: () => toggleExpanded(projectId, MORE_SECTION_ID), className: cn('group/more flex min-h-0 flex-col', open ? 'max-h-1/2' : 'shrink-0'), transition: { duration: 0.15, ease: 'easeOut' }, children: [_jsx(SidebarMenu, { children: _jsx(SidebarMenuItem, { children: _jsx(DisclosureTrigger, { children: _jsxs(SidebarMenuButton, { className: "text-muted-foreground hover:text-sidebar-foreground", children: [_jsx(DotsThreeIcon, { weight: "bold" }), _jsx("span", { className: "min-w-0 flex-1 truncate", children: t('more') }), _jsx(CaretRightSolidIcon, { "aria-hidden": true, className: cn('size-4! shrink-0 transition-transform duration-(--duration-fast) ease-out motion-reduce:transition-none', open && 'rotate-90') })] }) }) }) }), _jsxs(DisclosureContent, { className: "flex min-h-0 flex-1 flex-col", contentClassName: "flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto pt-1", children: [_jsx(SidebarMenu, { children: _jsx(ProjectNavItems, { projectId: projectId, review: false }) }), _jsx(ProjectSessionList, { projectId: projectId, secondary: true }), footer] })] }));
28
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kortix/ui",
3
- "version": "0.16.4",
3
+ "version": "0.16.5",
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",
@@ -2266,7 +2266,7 @@
2266
2266
  "@extend-ai/react-docx": "^0.7.5",
2267
2267
  "@extend-ai/react-xlsx": "0.13.4",
2268
2268
  "@glideapps/glide-data-grid": "6.0.4-alpha24",
2269
- "@kortix/llm-catalog": "0.16.4",
2269
+ "@kortix/llm-catalog": "0.16.5",
2270
2270
  "@lezer/highlight": "1.2.3",
2271
2271
  "@paper-design/shaders-react": "^0.0.76",
2272
2272
  "@phosphor-icons/react": "2.1.10",
@@ -2342,7 +2342,7 @@
2342
2342
  "zustand": "^5.0.3"
2343
2343
  },
2344
2344
  "peerDependencies": {
2345
- "@kortix/sdk": "^0.16.4",
2345
+ "@kortix/sdk": "^0.16.5",
2346
2346
  "@tanstack/react-query": "^5.75.2",
2347
2347
  "@types/react": ">=18",
2348
2348
  "react": ">=19",