@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
@@ -28,5 +28,3 @@ export * from './chat-mention';
28
28
  export * from './webhook-signing';
29
29
  export * from './pasted-content';
30
30
  export * from './space-slug';
31
- export * from './artifact-comments';
32
- export * from './artifact-annotations';
@@ -11,7 +11,6 @@ export declare const ArtifactFrame: import("react").ForwardRefExoticComponent<{
11
11
  title: string;
12
12
  className?: string;
13
13
  preview?: boolean;
14
- onFrame?: (frame: HTMLIFrameElement | null) => void;
15
14
  } & import("react").RefAttributes<HTMLDivElement>>;
16
15
  /** Create (and park) the pooled frame for an artifact page; a no-op when it exists. */
17
16
  export declare function ensureArtifactFrame(key: string, src: string, title: string): void;
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
- import { forwardRef, useLayoutEffect, useRef, useState } from 'react';
3
+ import { forwardRef, useLayoutEffect, useState } from 'react';
4
4
  import { claimFrame, ensureFrame } from '../apps/app-preview-pool.js';
5
5
  import { ARTIFACT_FRAME_ALLOW, ARTIFACT_IFRAME_SANDBOX } from './frame-policy.js';
6
6
  /**
@@ -19,12 +19,8 @@ const PREVIEW_CANVAS = 'bg-background';
19
19
  * viewer without reloading. `frameKey` changes after a save, so an edit loads
20
20
  * the new page. The ref is the slot (the viewer's full screen target).
21
21
  */
22
- export const ArtifactFrame = forwardRef(function ArtifactFrame({ frameKey, src, title, className, preview, onFrame }, ref) {
22
+ export const ArtifactFrame = forwardRef(function ArtifactFrame({ frameKey, src, title, className, preview }, ref) {
23
23
  const [slot, setSlot] = useState(null);
24
- const latestOnFrame = useRef(onFrame);
25
- useLayoutEffect(() => {
26
- latestOnFrame.current = onFrame;
27
- });
28
24
  const interactive = !preview;
29
25
  const frameClass = `${className ?? ''} ${preview ? PREVIEW_CANVAS : ARTIFACT_CANVAS}`;
30
26
  useLayoutEffect(() => {
@@ -47,13 +43,11 @@ export const ArtifactFrame = forwardRef(function ArtifactFrame({ frameKey, src,
47
43
  const reload = !!previous && Date.now() - previous.at < RELOAD_MS;
48
44
  if (interactive && (!reload || previous.focused) && !typingElsewhere())
49
45
  claimed?.focus({ preventScroll: true });
50
- latestOnFrame.current?.(claimed);
51
46
  return () => {
52
47
  releasedFocus.set(page, {
53
48
  at: Date.now(),
54
49
  focused: !!claimed && claimed.ownerDocument.activeElement === claimed,
55
50
  });
56
- latestOnFrame.current?.(null);
57
51
  release();
58
52
  };
59
53
  // The URL is read once per key: a refetch must not reload the page.
@@ -71,7 +65,7 @@ export const ArtifactFrame = forwardRef(function ArtifactFrame({ frameKey, src,
71
65
  const RELOAD_MS = 15_000;
72
66
  // One browser tab: whether each artifact's last released frame had the keyboard.
73
67
  const releasedFocus = new Map();
74
- /** `artifact:<id>` of a frame key (`artifact:<id>:<version>[:annotate]`). */
68
+ /** `artifact:<id>` of a frame key (`artifact:<id>:<version>`). */
75
69
  const artifactOf = (frameKey) => frameKey.split(':').slice(0, 2).join(':');
76
70
  /** The keyboard is in a text field or an editor of this document. */
77
71
  function typingElsewhere() {
@@ -86,7 +80,7 @@ export function ensureArtifactFrame(key, src, title) {
86
80
  sandbox: ARTIFACT_IFRAME_SANDBOX,
87
81
  allow: ARTIFACT_FRAME_ALLOW,
88
82
  testid: 'artifact-frame',
89
- // The page sees this app's origin, never the path: the bridge gates the live pointer on it.
83
+ // The page sees this app's origin, never the path with project ids.
90
84
  referrerPolicy: 'strict-origin',
91
85
  });
92
86
  }
@@ -2,12 +2,10 @@
2
2
  import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { getPublicArtifact } from '@kortix/sdk';
4
4
  import { useArtifact } from '@kortix/sdk/react';
5
- import { ArrowSquareOutIcon, BrowserIcon, ChatCircleIcon, FileTextIcon, XIcon } from '@phosphor-icons/react';
5
+ import { ArrowSquareOutIcon, BrowserIcon, FileTextIcon, XIcon } from '@phosphor-icons/react';
6
6
  import { useEffect, useState } from 'react';
7
- import { useTranslations } from '../i18n/index.js';
8
7
  import { useLocalizedUiCatalog } from '../i18n/ui-catalog/use-localized-ui-catalog.js';
9
8
  import { Button } from '../primitives/button.js';
10
- import { CountBadge } from '../primitives/count-badge.js';
11
9
  import Hint from '../primitives/hint.js';
12
10
  import { Skeleton } from '../primitives/skeleton.js';
13
11
  import { useUiComponents, useUiRouter } from '../providers/ui-provider.js';
@@ -62,7 +60,6 @@ function useShownArtifact(url) {
62
60
  src: detail.version.view_url,
63
61
  frameKey: artifactFrameKey(detail),
64
62
  href: `/projects/${detail.project_id}/artifacts/${detail.artifact_id}`,
65
- openThreads: detail.open_thread_count,
66
63
  },
67
64
  failed: false,
68
65
  };
@@ -75,14 +72,13 @@ function useShownArtifact(url) {
75
72
  */
76
73
  export function ShowArtifactCard({ url, fallback }) {
77
74
  const copy = useLocalizedUiCatalog(COPY);
78
- const t = useTranslations('artifacts');
79
75
  const { artifact, failed } = useShownArtifact(url);
80
76
  if (failed)
81
77
  return _jsx(_Fragment, { children: fallback });
82
78
  const Icon = artifact ? TYPE_ICON[artifact.type] : FileTextIcon;
83
79
  return (_jsxs("a", { href: url, target: "_blank", rel: "noopener noreferrer", "data-testid": "show-artifact-card", className: "group border-border bg-card hover:border-foreground/20 flex w-full max-w-xl flex-col overflow-hidden rounded-lg border text-left transition-colors", children: [_jsx("span", { className: "bg-muted relative block aspect-[16/9] w-full overflow-hidden border-b", children: artifact ? (_jsx(ArtifactFrame, { preview: true,
84
80
  // Its own frame: the chat card keeps its preview while the panel shows the artifact.
85
- frameKey: `${artifact.frameKey}:chat`, src: artifact.src, title: artifact.title, className: "pointer-events-none absolute top-0 left-0 h-[400%] w-[400%] origin-top-left scale-25 border-0" })) : null }), _jsxs("span", { className: "flex items-center gap-3 p-3", children: [_jsx("span", { className: "bg-muted flex size-8 shrink-0 items-center justify-center rounded-md", children: _jsx(Icon, { className: "text-muted-foreground size-4" }) }), _jsxs("span", { className: "min-w-0 flex-1", children: [artifact ? (_jsx("span", { className: "text-foreground block truncate text-sm font-medium", children: artifact.title })) : (_jsx(Skeleton, { className: "my-0.5 h-4 w-40 max-w-full" })), _jsxs("span", { className: "text-muted-foreground flex items-center gap-1.5 text-xs", children: [artifact ? (_jsx("span", { children: artifact.type === 'doc' ? copy.doc : copy.page })) : (_jsx(Skeleton, { className: "my-0.5 h-3 w-16" })), artifact?.openThreads ? (_jsx(CountBadge, { count: artifact.openThreads, tone: "waiting", icon: _jsx(ChatCircleIcon, { "aria-hidden": true }), role: "img", "aria-label": t('openComments', { count: artifact.openThreads }) })) : null] })] }), _jsx("span", { className: "text-muted-foreground group-hover:text-foreground shrink-0 text-xs font-medium transition-colors", children: copy.open })] })] }));
81
+ frameKey: `${artifact.frameKey}:chat`, src: artifact.src, title: artifact.title, className: "pointer-events-none absolute top-0 left-0 h-[400%] w-[400%] origin-top-left scale-25 border-0" })) : null }), _jsxs("span", { className: "flex items-center gap-3 p-3", children: [_jsx("span", { className: "bg-muted flex size-8 shrink-0 items-center justify-center rounded-md", children: _jsx(Icon, { className: "text-muted-foreground size-4" }) }), _jsxs("span", { className: "min-w-0 flex-1", children: [artifact ? (_jsx("span", { className: "text-foreground block truncate text-sm font-medium", children: artifact.title })) : (_jsx(Skeleton, { className: "my-0.5 h-4 w-40 max-w-full" })), _jsx("span", { className: "text-muted-foreground flex items-center gap-1.5 text-xs", children: artifact ? (_jsx("span", { children: artifact.type === 'doc' ? copy.doc : copy.page })) : (_jsx(Skeleton, { className: "my-0.5 h-3 w-16" })) })] }), _jsx("span", { className: "text-muted-foreground group-hover:text-foreground shrink-0 text-xs font-medium transition-colors", children: copy.open })] })] }));
86
82
  }
87
83
  /**
88
84
  * An artifact in the session panel: the page itself (a doc read as its page),
@@ -12,7 +12,7 @@ export declare const ARTIFACT_FRAME_PREFIX = "artifact:";
12
12
  export declare function artifactFrameKey(artifact: {
13
13
  artifact_id: string;
14
14
  updated_at: string;
15
- }, version?: string | null, annotate?: boolean): string;
15
+ }, version?: string | null): string;
16
16
  /**
17
17
  * Print a doc to PDF without leaving the page: its print view (`?print=1`)
18
18
  * loads in a hidden frame and opens the print dialog for that frame alone. The
@@ -9,8 +9,8 @@ export const ARTIFACT_FRAME_ALLOW = 'fullscreen; clipboard-write; autoplay; encr
9
9
  /** Artifact frames share the Apps frame pool (`@kortix/ui/apps`); their keys start with this. */
10
10
  export const ARTIFACT_FRAME_PREFIX = 'artifact:';
11
11
  /** One pooled frame per artifact state: a save (`updated_at`) or an old version gets its own. */
12
- export function artifactFrameKey(artifact, version, annotate = false) {
13
- return `${ARTIFACT_FRAME_PREFIX}${artifact.artifact_id}:${version ?? artifact.updated_at}${annotate ? ':annotate' : ''}`;
12
+ export function artifactFrameKey(artifact, version) {
13
+ return `${ARTIFACT_FRAME_PREFIX}${artifact.artifact_id}:${version ?? artifact.updated_at}`;
14
14
  }
15
15
  /**
16
16
  * Print a doc to PDF without leaving the page: its print view (`?print=1`)
@@ -229,9 +229,4 @@ export const KORTIX_PERMISSIONS_CATALOG = [
229
229
  actions: ['project.artifact.read', 'project.artifact.write', 'project.artifact.manage', 'project.artifact.public'],
230
230
  featureFlag: 'artifacts',
231
231
  },
232
- {
233
- group: 'Artifact comments',
234
- actions: ['project.artifact.comment'],
235
- featureFlag: 'artifact_comments',
236
- },
237
232
  ];
@@ -1,8 +1,8 @@
1
1
  import type { UiTranslator } from '../../../i18n/index.js';
2
2
  import type { ProjectTrigger } from '@kortix/sdk';
3
3
  import { type ReactNode } from 'react';
4
- /** "next Mon 09:00", "next 08:45" today, "On event" for webhooks and app events, "Paused" while paused. */
5
- export declare function nextRunLabel(trigger: Pick<ProjectTrigger, 'type' | 'enabled' | 'next_fire_at' | 'next_cron_at' | 'auto_paused_at'>, t: UiTranslator, locale: string, now?: number): string;
4
+ /** "next in 5 minutes", "next in 3 hours", "next in 2 days"; "On event" for webhooks and app events; "Paused" while paused. */
5
+ export declare function nextRunLabel(trigger: Pick<ProjectTrigger, 'type' | 'enabled' | 'next_fire_at' | 'next_cron_at' | 'auto_paused_at'>, t: UiTranslator, locale: string, now: number): string;
6
6
  export declare function TriggerList({ triggers, groups, eventNames, selectedSlug, runningSlug, onOpen, selection, projectPaused, }: {
7
7
  triggers: ProjectTrigger[];
8
8
  /** The trigger whose Run now is in flight: its row shows the session busy mark. */
@@ -9,35 +9,29 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
9
9
  import { Checkbox } from '../../../primitives/checkbox.js';
10
10
  import { SessionDotMatrix } from '../../../primitives/dot-matrix/session-dot-matrix.js';
11
11
  import { useLocale, useTranslations } from '../../../i18n/index.js';
12
- import { lastRunLabel } from '../../../internal/lib/trigger-clock.js';
12
+ import { lastRunLabel, nextRunIn } from '../../../internal/lib/trigger-clock.js';
13
+ import { useNow } from '../../../internal/reminders/use-refetch-after-fire.js';
13
14
  import { cn } from '../../../internal/lib/utils.js';
14
15
  import { Fragment } from 'react';
15
16
  import { describeNextRun, describeWhen, triggerName, triggerSubtitle } from './schedule-copy.js';
16
17
  import { TriggerTile } from './trigger-tile.js';
17
- const DAY = 24 * 60 * 60 * 1000;
18
- /** "next Mon 09:00", "next 08:45" today, "On event" for webhooks and app events, "Paused" while paused. */
19
- export function nextRunLabel(trigger, t, locale, now = Date.now()) {
18
+ /** "next in 5 minutes", "next in 3 hours", "next in 2 days"; "On event" for webhooks and app events; "Paused" while paused. */
19
+ export function nextRunLabel(trigger, t, locale, now) {
20
20
  // An auto-pause (KRTX-1721) is runtime state: the manifest still says enabled.
21
21
  if (!trigger.enabled || trigger.auto_paused_at)
22
22
  return t.raw('texte159b06187d3');
23
23
  if (trigger.type !== 'cron')
24
24
  return t.raw('text84b05fbb7f76');
25
25
  const iso = trigger.next_cron_at ?? trigger.next_fire_at;
26
- const at = iso ? Date.parse(iso) : Number.NaN;
27
- if (!Number.isFinite(at))
26
+ if (!iso || Number.isNaN(Date.parse(iso)))
28
27
  return '—';
29
- const date = new Date(at);
30
- const time = date.toLocaleTimeString(locale, { hour: '2-digit', minute: '2-digit', second: '2-digit', timeZoneName: 'short' });
31
- const today = new Date(now).toDateString() === date.toDateString();
32
- const day = today
33
- ? null
34
- : at - now < 6 * DAY
35
- ? date.toLocaleDateString(locale, { weekday: 'short' })
36
- : date.toLocaleDateString(locale, { month: 'short', day: 'numeric' });
37
- return t('text27a2c8b3a0d2', { value0: day ? `${day} ${time}` : time });
28
+ // `always`: "in 1 day", never "tomorrow", so the label always reads "next in <n> <unit>".
29
+ return t('text27a2c8b3a0d2', { value0: nextRunIn(iso, new Intl.RelativeTimeFormat(locale, { numeric: 'always' }), now) });
38
30
  }
39
31
  export function TriggerList({ triggers, groups, eventNames, selectedSlug, runningSlug = null, onOpen, selection = null, projectPaused = false, }) {
40
- const row = (trigger) => (_jsx(TriggerRow, { trigger: trigger, eventNames: eventNames, selected: !selection && trigger.slug === selectedSlug, running: trigger.slug === runningSlug, onOpen: () => onOpen(trigger), checked: selection ? selection.selected.has(trigger.slug) : null, projectPaused: projectPaused, onToggle: (range) => selection?.onToggle(trigger, range) }, trigger.slug));
32
+ // A 30 s tick: the list's poll keeps unchanged data, so nothing else re-renders the countdown.
33
+ const now = useNow();
34
+ const row = (trigger) => (_jsx(TriggerRow, { trigger: trigger, now: now, eventNames: eventNames, selected: !selection && trigger.slug === selectedSlug, running: trigger.slug === runningSlug, onOpen: () => onOpen(trigger), checked: selection ? selection.selected.has(trigger.slug) : null, projectPaused: projectPaused, onToggle: (range) => selection?.onToggle(trigger, range) }, trigger.slug));
41
35
  return (
42
36
  // A resting panel (`bg-card`, border, `rounded-lg`), so the rows sit on a
43
37
  // surface in both themes; hover is one step up, the open row one more.
@@ -45,7 +39,7 @@ export function TriggerList({ triggers, groups, eventNames, selectedSlug, runnin
45
39
  ? groups.map((group) => (_jsxs(Fragment, { children: [_jsx("li", { role: selection ? 'presentation' : undefined, className: "px-3 pt-3.5 pb-1.5", children: group.heading }), group.triggers.map(row)] }, group.key)))
46
40
  : triggers.map(row) }));
47
41
  }
48
- function TriggerRow({ trigger, eventNames, selected, running, onOpen, checked, onToggle, projectPaused, }) {
42
+ function TriggerRow({ trigger, now, eventNames, selected, running, onOpen, checked, onToggle, projectPaused, }) {
49
43
  const t = useTranslations('hardcodedUi.i18nComplete');
50
44
  const locale = useLocale();
51
45
  const name = triggerName(trigger);
@@ -57,7 +51,7 @@ function TriggerRow({ trigger, eventNames, selected, running, onOpen, checked, o
57
51
  'bg-(--row-surface) [--row-surface:var(--card)]', selected || checked
58
52
  ? '[--row-surface:var(--muted)]'
59
53
  : 'hover:[--row-surface:color-mix(in_oklab,var(--muted)_60%,var(--card))] focus-visible:[--row-surface:color-mix(in_oklab,var(--muted)_60%,var(--card))]');
60
- const cells = (_jsxs(_Fragment, { children: [_jsx("span", { className: "flex size-5 shrink-0 items-center justify-center", children: selecting ? (_jsx(Checkbox, { checked: checked, tabIndex: -1, "aria-hidden": true, className: "pointer-events-none" })) : (_jsx(TriggerTile, { trigger: trigger, projectPaused: projectPaused, running: running, surface: "row" })) }), _jsxs("span", { className: "flex min-w-0 flex-1 flex-col", children: [_jsx("span", { className: "text-foreground truncate text-sm leading-tight font-medium", children: name }), subtitle ? (_jsx("span", { className: "text-muted-foreground truncate text-xs leading-tight", children: subtitle })) : null] }), _jsxs("span", { className: "flex w-24 shrink-0 flex-col items-end text-xs tabular-nums", children: [_jsx("span", { title: projectPaused ? undefined : describeNextRun(trigger) ?? undefined, className: cn('whitespace-nowrap', trigger.enabled && !trigger.auto_paused_at && !projectPaused ? 'text-foreground' : 'text-muted-foreground'), children: nextRunLabel(projectPaused ? { ...trigger, enabled: false } : trigger, t, locale) }), running ? (_jsx("span", { className: "flex h-4 items-center", children: _jsx(SessionDotMatrix, { sessionId: trigger.slug, size: 14, className: "shrink-0" }) })) : (_jsx("span", { className: "text-muted-foreground whitespace-nowrap", children: lastRunLabel(trigger, t, locale) }))] })] }));
54
+ const cells = (_jsxs(_Fragment, { children: [_jsx("span", { className: "flex size-5 shrink-0 items-center justify-center", children: selecting ? (_jsx(Checkbox, { checked: checked, tabIndex: -1, "aria-hidden": true, className: "pointer-events-none" })) : (_jsx(TriggerTile, { trigger: trigger, projectPaused: projectPaused, running: running, surface: "row" })) }), _jsxs("span", { className: "flex min-w-0 flex-1 flex-col", children: [_jsx("span", { title: name, className: "text-foreground truncate text-sm leading-tight font-medium", children: name }), subtitle ? (_jsx("span", { className: "text-muted-foreground truncate text-xs leading-tight", children: subtitle })) : null] }), _jsxs("span", { className: "flex min-w-24 shrink-0 flex-col items-end text-xs tabular-nums", children: [_jsx("span", { title: projectPaused ? undefined : describeNextRun(trigger) ?? undefined, className: cn('whitespace-nowrap', trigger.enabled && !trigger.auto_paused_at && !projectPaused ? 'text-foreground' : 'text-muted-foreground'), children: nextRunLabel(projectPaused ? { ...trigger, enabled: false } : trigger, t, locale, now) }), running ? (_jsx("span", { className: "flex h-4 items-center", children: _jsx(SessionDotMatrix, { sessionId: trigger.slug, size: 14, className: "shrink-0" }) })) : (_jsx("span", { className: "text-muted-foreground whitespace-nowrap", children: lastRunLabel(trigger, t, locale, now) }))] })] }));
61
55
  if (selecting) {
62
56
  return (_jsx("li", { role: "option", "aria-selected": checked, tabIndex: 0, onClick: (e) => onToggle(e.shiftKey), onKeyDown: (e) => {
63
57
  if (e.key === ' ' || e.key === 'Enter') {
package/dist/i18n/en.d.ts CHANGED
@@ -798,10 +798,6 @@ declare const catalog: {
798
798
  name: string;
799
799
  description: string;
800
800
  };
801
- notification_center: {
802
- name: string;
803
- description: string;
804
- };
805
801
  event_triggers: {
806
802
  name: string;
807
803
  description: string;
@@ -814,10 +810,6 @@ declare const catalog: {
814
810
  name: string;
815
811
  description: string;
816
812
  };
817
- artifacts: {
818
- name: string;
819
- description: string;
820
- };
821
813
  email_channel: {
822
814
  name: string;
823
815
  description: string;
@@ -830,10 +822,6 @@ declare const catalog: {
830
822
  name: string;
831
823
  description: string;
832
824
  };
833
- artifact_comments: {
834
- name: string;
835
- description: string;
836
- };
837
825
  chrome: {
838
826
  name: string;
839
827
  description: string;
@@ -2144,7 +2132,6 @@ declare const catalog: {
2144
2132
  automation_recovered: string;
2145
2133
  capture_device_down: string;
2146
2134
  capture_device_recovered: string;
2147
- artifact_comment: string;
2148
2135
  };
2149
2136
  kindDescription: {
2150
2137
  turn_done: string;
@@ -2156,17 +2143,20 @@ declare const catalog: {
2156
2143
  automation_recovered: string;
2157
2144
  capture_device_down: string;
2158
2145
  capture_device_recovered: string;
2159
- artifact_comment: string;
2160
2146
  };
2161
- bell: {
2162
- label: string;
2147
+ inbox: {
2148
+ title: string;
2149
+ description: string;
2163
2150
  unreadLabel: string;
2151
+ unreadCount: string;
2164
2152
  markAllRead: string;
2165
2153
  tabAll: string;
2166
2154
  tabNeedsYou: string;
2167
2155
  tabDone: string;
2168
2156
  emptyNeedsYou: string;
2157
+ emptyNeedsYouDescription: string;
2169
2158
  empty: string;
2159
+ emptyDescription: string;
2170
2160
  loadError: string;
2171
2161
  retry: string;
2172
2162
  unread: string;
@@ -2174,6 +2164,8 @@ declare const catalog: {
2174
2164
  promptBackground: string;
2175
2165
  turnOn: string;
2176
2166
  dismiss: string;
2167
+ settings: string;
2168
+ emailOptIn: string;
2177
2169
  };
2178
2170
  arrival: {
2179
2171
  inProject: string;
@@ -2181,7 +2173,6 @@ declare const catalog: {
2181
2173
  openReminders: string;
2182
2174
  openTriggers: string;
2183
2175
  openConversation: string;
2184
- openArtifact: string;
2185
2176
  };
2186
2177
  session: {
2187
2178
  mute: string;
@@ -8244,7 +8235,6 @@ declare const catalog: {
8244
8235
  };
8245
8236
  artifacts: {
8246
8237
  title: string;
8247
- gateDescription: string;
8248
8238
  type: {
8249
8239
  doc: string;
8250
8240
  html: string;
@@ -8267,7 +8257,6 @@ declare const catalog: {
8267
8257
  moveFailed: string;
8268
8258
  updated: string;
8269
8259
  pinned: string;
8270
- openComments: string;
8271
8260
  visibility: {
8272
8261
  private: string;
8273
8262
  project: string;
@@ -8366,143 +8355,6 @@ declare const catalog: {
8366
8355
  close: string;
8367
8356
  conflictReload: string;
8368
8357
  conflictKeepMine: string;
8369
- discussion: {
8370
- comments: string;
8371
- activity: string;
8372
- open: string;
8373
- resolved: string;
8374
- outdated: string;
8375
- outdatedHint: string;
8376
- newComment: string;
8377
- annotationMode: string;
8378
- annotationModeHint: string;
8379
- annotationLoading: string;
8380
- annotationUnavailable: string;
8381
- commentLabel: string;
8382
- commentPlaceholder: string;
8383
- replyLabel: string;
8384
- replyPlaceholder: string;
8385
- postComment: string;
8386
- postReply: string;
8387
- saveEdit: string;
8388
- cancel: string;
8389
- edit: string;
8390
- delete: string;
8391
- deleteTitle: string;
8392
- deleteDescription: string;
8393
- commentDeleted: string;
8394
- threadDeleted: string;
8395
- resolve: string;
8396
- reopen: string;
8397
- edited: string;
8398
- commentActions: string;
8399
- focusThread: string;
8400
- quoteLabel: string;
8401
- waitingForPerson: string;
8402
- deliveryFailed: string;
8403
- sendFailed: string;
8404
- retrySend: string;
8405
- discardSend: string;
8406
- sendRetryHint: string;
8407
- sendBatchHint: string;
8408
- commentFailed: string;
8409
- statusFailed: string;
8410
- deleteFailed: string;
8411
- commentsLoadError: string;
8412
- contextLoadError: string;
8413
- activityLoadError: string;
8414
- retry: string;
8415
- sendAgainTo: string;
8416
- noComments: string;
8417
- noCommentsHint: string;
8418
- noResolved: string;
8419
- noResolvedHint: string;
8420
- noActivity: string;
8421
- noActivityHint: string;
8422
- loadMore: string;
8423
- olderSaves: string;
8424
- historicalReadOnly: string;
8425
- mentionPeople: string;
8426
- mentionAgents: string;
8427
- sourceSession: string;
8428
- composerKeys: string;
8429
- closeSelection: string;
8430
- preparingSelection: string;
8431
- selectionCaptureFailed: string;
8432
- commentSelection: string;
8433
- selectionTooLong: string;
8434
- selectionUnavailable: string;
8435
- snapshotChanged: string;
8436
- commentSaveFailed: string;
8437
- events: {
8438
- saved: string;
8439
- published: string;
8440
- renamed: string;
8441
- visibility_changed: string;
8442
- shared_with_changed: string;
8443
- restored: string;
8444
- thread_opened: string;
8445
- replied: string;
8446
- resolved: string;
8447
- reopened: string;
8448
- comment_deleted: string;
8449
- sent_to_agent: string;
8450
- };
8451
- person: string;
8452
- deleteRootDescription: string;
8453
- showPanel: string;
8454
- hidePanel: string;
8455
- panelTitle: string;
8456
- resizePanel: string;
8457
- unshareComments: string;
8458
- systemActor: string;
8459
- draw: string;
8460
- drawPen: string;
8461
- drawArrow: string;
8462
- drawRectangle: string;
8463
- drawBlack: string;
8464
- drawRed: string;
8465
- drawBlue: string;
8466
- drawUndo: string;
8467
- drawPageChanged: string;
8468
- drawLimit: string;
8469
- openScreenshot: string;
8470
- drawingScreenshot: string;
8471
- screenshotReadFailed: string;
8472
- screenshotMissing: string;
8473
- screenshotCaptureFailed: string;
8474
- sendScreenshotLimit: string;
8475
- agentsUnavailable: string;
8476
- showMore: string;
8477
- showLess: string;
8478
- moreReplies: string;
8479
- resolvedBy: string;
8480
- agent: string;
8481
- threadResolved: string;
8482
- undo: string;
8483
- agentPending: string;
8484
- agentSent: string;
8485
- openSession: string;
8486
- notDelivered: string;
8487
- sendThreads: string;
8488
- chooseAgent: string;
8489
- sentToAgent: string;
8490
- newCommentFrom: string;
8491
- newComments: string;
8492
- pagePinLabel: string;
8493
- showPanelCount: string;
8494
- hidePanelCount: string;
8495
- commentSelectionHint: string;
8496
- threadReopened: string;
8497
- noCommentsReadOnlyHint: string;
8498
- commentTooLong: string;
8499
- discardDrawingTitle: string;
8500
- discardDrawingHint: string;
8501
- discardDrawing: string;
8502
- keepDrawing: string;
8503
- activityLine: string;
8504
- activityLabel: string;
8505
- };
8506
8358
  insertMedia: string;
8507
8359
  diagram: string;
8508
8360
  blockMenu: string;
@@ -8527,35 +8379,6 @@ declare const catalog: {
8527
8379
  embedDelete: string;
8528
8380
  spaceEmpty: string;
8529
8381
  showAll: string;
8530
- live: {
8531
- here: string;
8532
- hereLabel: string;
8533
- reconnecting: string;
8534
- you: string;
8535
- agents: string;
8536
- agentsHere: string;
8537
- status: {
8538
- viewing: string;
8539
- reading: string;
8540
- editing: string;
8541
- writing: string;
8542
- };
8543
- hideCursor: string;
8544
- hideCursorHint: string;
8545
- typingOne: string;
8546
- typingTwo: string;
8547
- typingMany: string;
8548
- writing: string;
8549
- };
8550
- coedit: {
8551
- offLarge: string;
8552
- offLineEndings: string;
8553
- offShape: string;
8554
- stoppedLarge: string;
8555
- stoppedFailed: string;
8556
- stoppedHistory: string;
8557
- offFailed: string;
8558
- };
8559
8382
  conflictTitle: string;
8560
8383
  conflictReloadTitle: string;
8561
8384
  conflictReloadHint: string;