@opengeni/react-native 4.4.1 → 4.5.0

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.
@@ -827,6 +827,145 @@ export declare const iconNodes: {
827
827
  readonly cy: "9";
828
828
  readonly r: "2";
829
829
  }]];
830
+ readonly monitor: readonly [readonly ["rect", {
831
+ readonly width: "20";
832
+ readonly height: "14";
833
+ readonly x: "2";
834
+ readonly y: "3";
835
+ readonly rx: "2";
836
+ }], readonly ["line", {
837
+ readonly x1: "8";
838
+ readonly x2: "16";
839
+ readonly y1: "21";
840
+ readonly y2: "21";
841
+ }], readonly ["line", {
842
+ readonly x1: "12";
843
+ readonly x2: "12";
844
+ readonly y1: "17";
845
+ readonly y2: "21";
846
+ }]];
847
+ readonly "file-spreadsheet": readonly [readonly ["path", {
848
+ readonly d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z";
849
+ }], readonly ["path", {
850
+ readonly d: "M14 2v5a1 1 0 0 0 1 1h5";
851
+ }], readonly ["path", {
852
+ readonly d: "M8 13h2";
853
+ }], readonly ["path", {
854
+ readonly d: "M14 13h2";
855
+ }], readonly ["path", {
856
+ readonly d: "M8 17h2";
857
+ }], readonly ["path", {
858
+ readonly d: "M14 17h2";
859
+ }]];
860
+ readonly hourglass: readonly [readonly ["path", {
861
+ readonly d: "M5 22h14";
862
+ }], readonly ["path", {
863
+ readonly d: "M5 2h14";
864
+ }], readonly ["path", {
865
+ readonly d: "M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22";
866
+ }], readonly ["path", {
867
+ readonly d: "M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2";
868
+ }]];
869
+ readonly download: readonly [readonly ["path", {
870
+ readonly d: "M 12 15V3";
871
+ }], readonly ["path", {
872
+ readonly d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4";
873
+ }], readonly ["path", {
874
+ readonly d: "m7 10 5 5 5-5";
875
+ }]];
876
+ readonly clipboard: readonly [readonly ["rect", {
877
+ readonly width: "8";
878
+ readonly height: "4";
879
+ readonly x: "8";
880
+ readonly y: "2";
881
+ readonly rx: "1";
882
+ readonly ry: "1";
883
+ }], readonly ["path", {
884
+ readonly d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2";
885
+ }]];
886
+ readonly video: readonly [readonly ["path", {
887
+ readonly d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5";
888
+ }], readonly ["rect", {
889
+ readonly x: "2";
890
+ readonly y: "6";
891
+ readonly width: "14";
892
+ readonly height: "12";
893
+ readonly rx: "2";
894
+ }]];
895
+ readonly "circle-dot": readonly [readonly ["circle", {
896
+ readonly cx: "12";
897
+ readonly cy: "12";
898
+ readonly r: "10";
899
+ }], readonly ["circle", {
900
+ readonly cx: "12";
901
+ readonly cy: "12";
902
+ readonly r: "1";
903
+ }]];
904
+ readonly file: readonly [readonly ["path", {
905
+ readonly d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z";
906
+ }], readonly ["path", {
907
+ readonly d: "M14 2v5a1 1 0 0 0 1 1h5";
908
+ }]];
909
+ readonly archive: readonly [readonly ["rect", {
910
+ readonly width: "20";
911
+ readonly height: "5";
912
+ readonly x: "2";
913
+ readonly y: "3";
914
+ readonly rx: "1";
915
+ }], readonly ["path", {
916
+ readonly d: "M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8";
917
+ }], readonly ["path", {
918
+ readonly d: "M10 12h4";
919
+ }]];
920
+ readonly "app-window": readonly [readonly ["rect", {
921
+ readonly x: "2";
922
+ readonly y: "4";
923
+ readonly width: "20";
924
+ readonly height: "16";
925
+ readonly rx: "2";
926
+ }], readonly ["path", {
927
+ readonly d: "M10 4v4";
928
+ }], readonly ["path", {
929
+ readonly d: "M2 8h20";
930
+ }], readonly ["path", {
931
+ readonly d: "M6 4v4";
932
+ }]];
933
+ readonly "book-open": readonly [readonly ["path", {
934
+ readonly d: "M 12 5v16";
935
+ }], readonly ["path", {
936
+ readonly d: "M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z";
937
+ }]];
938
+ readonly hand: readonly [readonly ["path", {
939
+ readonly d: "M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2";
940
+ }], readonly ["path", {
941
+ readonly d: "M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2";
942
+ }], readonly ["path", {
943
+ readonly d: "M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8";
944
+ }], readonly ["path", {
945
+ readonly d: "M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15";
946
+ }]];
947
+ readonly activity: readonly [readonly ["path", {
948
+ readonly d: "M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2";
949
+ }]];
950
+ readonly "log-in": readonly [readonly ["path", {
951
+ readonly d: "m10 17 5-5-5-5";
952
+ }], readonly ["path", {
953
+ readonly d: "M15 12H3";
954
+ }], readonly ["path", {
955
+ readonly d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4";
956
+ }]];
957
+ readonly code: readonly [readonly ["path", {
958
+ readonly d: "m16 18 6-6-6-6";
959
+ }], readonly ["path", {
960
+ readonly d: "m8 6-6 6 6 6";
961
+ }]];
962
+ readonly receipt: readonly [readonly ["path", {
963
+ readonly d: "M 12 17V7";
964
+ }], readonly ["path", {
965
+ readonly d: "M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8";
966
+ }], readonly ["path", {
967
+ readonly d: "M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z";
968
+ }]];
830
969
  readonly eye: readonly [readonly ["path", {
831
970
  readonly d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0";
832
971
  }], readonly ["circle", {
@@ -1,12 +1,12 @@
1
- import { defaultSecretFieldMessages, ThinkingOrb, humanInputAnswerLines, isSecretQuestion, initialSecretDraft, secretSubmission, secretInputTraits, secretUsernameTraits, SECRET_SAVE_TO_OPTIONS, secretPatternMismatch } from '../chunk-2RNMGRTB.js';
2
- import { ActivityDisclosure, useNativeTimelineMessages, useReleaseFollow, ShimmerText, withAlpha, ReleaseFollowProvider, blendOver, NativeTimelineMessagesProvider, ROW_MIN_HEIGHT, PulseDot, BodyNote, PayloadBlock, TermBlock, Chip, RunningPreview } from '../chunk-QFV5DISV.js';
3
- export { ActivityDisclosure, BodyNote, Chip, NativeTimelineMessagesProvider, PayloadBlock, PulseDot, ShimmerText, TermBlock, defaultNativeTimelineMessages, useNativeTimelineMessages, withAlpha } from '../chunk-QFV5DISV.js';
4
- import { NativeImageViewer } from '../chunk-ZZNZBZWV.js';
5
- export { NativeImageViewer } from '../chunk-ZZNZBZWV.js';
1
+ import { defaultSecretFieldMessages, ThinkingOrb, humanInputAnswerLines, isSecretQuestion, initialSecretDraft, secretSubmission, secretInputTraits, secretUsernameTraits, SECRET_SAVE_TO_OPTIONS, secretPatternMismatch } from '../chunk-DQNUIL2F.js';
2
+ import { ActivityDisclosure, useNativeTimelineMessages, useReleaseFollow, ShimmerText, withAlpha, ReleaseFollowProvider, blendOver, NativeTimelineMessagesProvider, ROW_MIN_HEIGHT, PulseDot, BodyNote, PayloadBlock, TermBlock, Chip, RunningPreview } from '../chunk-QBQRHN64.js';
3
+ export { ActivityDisclosure, BodyNote, Chip, NativeTimelineMessagesProvider, PayloadBlock, PulseDot, ShimmerText, TermBlock, defaultNativeTimelineMessages, useNativeTimelineMessages, withAlpha } from '../chunk-QBQRHN64.js';
4
+ import { NativeImageViewer } from '../chunk-CLIXZUMZ.js';
5
+ export { NativeImageViewer } from '../chunk-CLIXZUMZ.js';
6
6
  import { useOpenNativeLink } from '../chunk-2WJTBHO6.js';
7
7
  import '../chunk-7ZDF5VGA.js';
8
- import { useNativeTimelineTheme, fontStyle, Icon } from '../chunk-FHPMRXIG.js';
9
- export { Icon, NativeTimelineThemeProvider, createNativeTimelineTheme, fontStyle, useNativeTimelineTheme, webColorsDark, webColorsLight } from '../chunk-FHPMRXIG.js';
8
+ import { useNativeTimelineTheme, fontStyle, Icon } from '../chunk-NIQPBSB4.js';
9
+ export { Icon, NativeTimelineThemeProvider, createNativeTimelineTheme, fontStyle, useNativeTimelineTheme, webColorsDark, webColorsLight } from '../chunk-NIQPBSB4.js';
10
10
  import { buildTimeline, groupTimeline, conversationTimeline, useSessionStart, personalMachineCopy } from '@opengeni/react/session';
11
11
  import { defaultHumanInputFormMessages, createTurnSummaryContext, resolveTurnSummaryFacets, selectTurnSummaryFacets, formatElapsed, turnSummaryFallbackLabel, rollingActivityItem, toolDisplayName, annotationHasNote, annotationDisplayOrdinal, ANNOTATION_MAX_NOTE_LENGTH, questionNavTarget, timelineGroupIndexAtSequence, QUESTION_NAV_MARGIN_PX, flattenActivityItems, timelineGroupContainsPresentedImage, durationBetween, isPreparingWork, readableWorkStatus, readableWorkShowsPreview, readableWorkDefaultOpen, compactedLandmarkCount, SESSION_STATUS_PRESENTATION, formatRelativeTime, recordedWaitSummaryText, noticeTone, noticeDisplayText, isActionableHumanInputRequest, humanInputHeading, initialDrafts, emptyDraft, SESSION_STATUS_BADGE, workerRowTitle, startupDuration, STARTUP_WAIT_TITLES, startupPhaseTitle, sandboxRowTitle, toolRowPresentation, presentsToolOutputPreview, GENIE_WAITING_PHRASES, GENIE_PREPARING_PHRASES, truncateAnnotationQuote, annotationNoteNeedsDisclosure, annotationFromSelection, answersFromDrafts, notificationPlainText, pathDirname, pathBasename, formatClockTime, parseNotificationText } from '@opengeni/react/timeline-model';
12
12
  import { createContext, useContext, useRef, useState, useEffect, useMemo, useCallback, useId } from 'react';
@@ -105,6 +105,33 @@ var TOOL_ICON = {
105
105
  "file-search": "file-search",
106
106
  "package-search": "package-search",
107
107
  plug: "plug",
108
+ browser: "globe",
109
+ screen: "monitor",
110
+ spreadsheet: "file-spreadsheet",
111
+ wait: "hourglass",
112
+ download: "download",
113
+ clipboard: "clipboard",
114
+ image: "image",
115
+ video: "video",
116
+ record: "circle-dot",
117
+ document: "file-text",
118
+ file: "file",
119
+ attachment: "paperclip",
120
+ archive: "archive",
121
+ folder: "folder",
122
+ site: "app-window",
123
+ guide: "book-open",
124
+ settings: "settings",
125
+ bell: "bell",
126
+ inbox: "inbox",
127
+ help: "hand",
128
+ model: "sparkles",
129
+ progress: "activity",
130
+ helper: "bot",
131
+ "sign-in": "log-in",
132
+ code: "code",
133
+ accounting: "receipt",
134
+ rename: "pencil",
108
135
  wrench: "wrench"
109
136
  };
110
137
  function PreviewNode({ preview, compact }) {
@@ -5355,7 +5382,14 @@ function ModelMark({
5355
5382
  if (!vendor) return /* @__PURE__ */ jsx(Icon, { name: "sparkles", size, color });
5356
5383
  return /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "0 0 24 24", accessibilityElementsHidden: true, children: /* @__PURE__ */ jsx(Path, { d: MODEL_MARK_PATHS[vendor], fill: color }) });
5357
5384
  }
5358
- function SessionRow({ session, models, onPress, onTogglePin, now }) {
5385
+ function SessionRow({
5386
+ session,
5387
+ models,
5388
+ onPress,
5389
+ onTogglePin,
5390
+ workspaceName,
5391
+ now
5392
+ }) {
5359
5393
  const theme = useNativeTimelineTheme();
5360
5394
  const m = useNativeTimelineMessages();
5361
5395
  const c = theme.colors;
@@ -5366,6 +5400,12 @@ function SessionRow({ session, models, onPress, onTogglePin, now }) {
5366
5400
  const model = recentSessionModelPresentation(session.model, rows);
5367
5401
  const repo = sessionRepoLabel(session);
5368
5402
  const meta = [model.label, repo].filter(Boolean).join(" \xB7 ");
5403
+ const metaStyle = {
5404
+ ...fontStyle(theme, 400),
5405
+ fontSize: 11,
5406
+ lineHeight: 16,
5407
+ color: c["fg-subtle"]
5408
+ };
5369
5409
  const pinned = Boolean(session.pinned);
5370
5410
  const pinLabel = pinned ? m.unpin : m.pin;
5371
5411
  const offerPin = () => {
@@ -5392,7 +5432,7 @@ function SessionRow({ session, models, onPress, onTogglePin, now }) {
5392
5432
  Pressable,
5393
5433
  {
5394
5434
  accessibilityRole: "button",
5395
- accessibilityLabel: pinned ? `${title}, ${m.pinned}` : title,
5435
+ accessibilityLabel: [title, pinned ? m.pinned : null, workspaceName ?? null].filter(Boolean).join(", "),
5396
5436
  accessibilityActions: onTogglePin ? [{ name: "pin", label: pinLabel }] : void 0,
5397
5437
  onAccessibilityAction: (event) => {
5398
5438
  if (event.nativeEvent.actionName === "pin") onTogglePin?.();
@@ -5419,22 +5459,23 @@ function SessionRow({ session, models, onPress, onTogglePin, now }) {
5419
5459
  children: title
5420
5460
  }
5421
5461
  ),
5422
- meta ? /* @__PURE__ */ jsxs(View, { style: { flexDirection: "row", alignItems: "center", gap: 6, marginTop: 2 }, children: [
5423
- /* @__PURE__ */ jsx(ModelMark, { model: session.model, size: 12, color: c["fg-muted"] }),
5424
- /* @__PURE__ */ jsx(
5425
- Text,
5426
- {
5427
- numberOfLines: 1,
5428
- style: {
5429
- ...fontStyle(theme, 400),
5430
- fontSize: 11,
5431
- lineHeight: 16,
5432
- color: c["fg-subtle"],
5433
- flexShrink: 1
5434
- },
5435
- children: meta
5436
- }
5437
- )
5462
+ meta || workspaceName ? /* @__PURE__ */ jsxs(View, { style: { flexDirection: "row", alignItems: "center", gap: 6, marginTop: 2 }, children: [
5463
+ workspaceName ? /* @__PURE__ */ jsxs(Fragment, { children: [
5464
+ /* @__PURE__ */ jsx(Icon, { name: "folder", size: 11, color: c["fg-muted"] }),
5465
+ /* @__PURE__ */ jsx(
5466
+ Text,
5467
+ {
5468
+ numberOfLines: 1,
5469
+ style: { ...metaStyle, color: c["fg-muted"], flexShrink: 2 },
5470
+ children: workspaceName
5471
+ }
5472
+ ),
5473
+ meta ? /* @__PURE__ */ jsx(Text, { style: metaStyle, children: "\xB7" }) : null
5474
+ ] }) : null,
5475
+ meta ? /* @__PURE__ */ jsxs(Fragment, { children: [
5476
+ /* @__PURE__ */ jsx(ModelMark, { model: session.model, size: 12, color: c["fg-muted"] }),
5477
+ /* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: { ...metaStyle, flexShrink: 1 }, children: meta })
5478
+ ] }) : null
5438
5479
  ] }) : null
5439
5480
  ] }),
5440
5481
  /* @__PURE__ */ jsxs(View, { style: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
@@ -5493,7 +5534,8 @@ function SessionRowList(props) {
5493
5534
  session,
5494
5535
  models: props.models,
5495
5536
  onPress: () => props.onOpen(session.id),
5496
- onTogglePin: props.onTogglePin ? () => props.onTogglePin?.(session) : void 0
5537
+ onTogglePin: props.onTogglePin ? () => props.onTogglePin?.(session) : void 0,
5538
+ workspaceName: props.workspaceNameOf?.(session)
5497
5539
  }
5498
5540
  )
5499
5541
  },